[vlc-commits] qml: add color property from TabButtonExt

Prince Gupta git at videolan.org
Mon Aug 10 12:09:26 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jul 10 00:20:31 2020 +0530| [e4b4e7eb7fe2014e57b525565798ef02f6e1309e] | committer: Pierre Lamot

qml: add color property from TabButtonExt

this property corresponds to color of icon and text

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4b4e7eb7fe2014e57b525565798ef02f6e1309e
---

 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
             }
         }
 



More information about the vlc-commits mailing list