diff options
author | ronso0 <ronso0@mixxx.org> | 2021-06-08 20:36:36 +0200 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2021-06-10 02:53:57 +0200 |
commit | 56abd4d0fdc697eb0157946a60391347d21877f8 (patch) | |
tree | 99767af6c3f53beb4724dab1a722eb2e9b4699c3 /src/widget | |
parent | 1dd3dec0c70b4b79cbc0c96e8773d5992904eed8 (diff) |
WLibrarySidebar: scale icons with library font
Diffstat (limited to 'src/widget')
-rw-r--r-- | src/widget/wlibrarysidebar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widget/wlibrarysidebar.cpp b/src/widget/wlibrarysidebar.cpp index 57915ce18b..226f1a26d2 100644 --- a/src/widget/wlibrarysidebar.cpp +++ b/src/widget/wlibrarysidebar.cpp @@ -231,4 +231,7 @@ bool WLibrarySidebar::event(QEvent* pEvent) { void WLibrarySidebar::slotSetFont(const QFont& font) { setFont(font); + // Resize the feature icons to be a bit taller than the label's capital + int iconSize = static_cast<int>(QFontMetrics(font).height() * 0.8); + setIconSize(QSize(iconSize, iconSize)); } |