[vlc-devel] [PATCH 03/29] qml: add color property from TabButtonExt

Prince Gupta guptaprince8832 at gmail.com
Tue Aug 4 13:34:36 CEST 2020


this property corresponds to color of icon and text
---
 modules/gui/qt/widgets/qml/TabButtonExt.qml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/TabButtonExt.qml b/modules/gui/qt/widgets/qml/TabButtonExt.qml
index bf0f77d147..339ae5cdd1 100644
--- a/modules/gui/qt/widgets/qml/TabButtonExt.qml
+++ b/modules/gui/qt/widgets/qml/TabButtonExt.qml
@@ -37,6 +37,7 @@ T.TabButton {
 
     property string iconTxt: ""
     property bool selected: false
+    property color color: VLCStyle.colors.text
 
     font.pixelSize: VLCStyle.fontSize_normal
 
@@ -73,7 +74,7 @@ T.TabButton {
                     verticalAlignment: Text.AlignVCenter
 
                     text: control.iconTxt
-                    color: VLCStyle.colors.buttonText
+                    color: control.color
 
                     font.pixelSize: VLCIcons.pixelSize(VLCStyle.icon_topbar)
                 }
@@ -82,7 +83,7 @@ T.TabButton {
 
             Widgets.MenuCaption {
                 text: control.text
-                color: VLCStyle.colors.text
+                color: control.color
             }
         }
 
-- 
2.25.1



More information about the vlc-devel mailing list