[vlc-devel] [PATCH 19/26] qml: use VLCStyle.icon_normal as default icon size in widget TabButtonExt

Prince Gupta guptaprince8832 at gmail.com
Thu Dec 17 17:26:17 UTC 2020


---
 modules/gui/qt/widgets/qml/TabButtonExt.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/widgets/qml/TabButtonExt.qml b/modules/gui/qt/widgets/qml/TabButtonExt.qml
index 2b526129b4..56b9beb59c 100644
--- a/modules/gui/qt/widgets/qml/TabButtonExt.qml
+++ b/modules/gui/qt/widgets/qml/TabButtonExt.qml
@@ -36,6 +36,7 @@ T.TabButton {
     implicitHeight: contentItem.implicitHeight
 
     property string iconTxt: ""
+    property int iconSize: VLCStyle.icon_normal
     property bool selected: false
     property color color: focusBackground.foregroundColor
     property bool busy: false
@@ -80,7 +81,7 @@ T.TabButton {
                     text: control.iconTxt
                     color: control.color
 
-                    font.pixelSize: VLCIcons.pixelSize(VLCStyle.icon_topbar)
+                    font.pixelSize: VLCIcons.pixelSize(control.iconSize)
                 }
 
                 BusyIndicator {
-- 
2.25.1



More information about the vlc-devel mailing list