[vlc-commits] qml: fix foreground color handling in TabButtonExt
    Prince Gupta 
    git at videolan.org
       
    Mon Apr 12 08:07:55 UTC 2021
    
    
  
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Apr  5 16:38:40 2021 +0530| [7dc299c3a2369fa715532cd1a1469efa7d68d3e5] | committer: Pierre Lamot
qml: fix foreground color handling in TabButtonExt
fixes tab button not using accentText color when active
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7dc299c3a2369fa715532cd1a1469efa7d68d3e5
---
 modules/gui/qt/widgets/qml/TabButtonExt.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/TabButtonExt.qml b/modules/gui/qt/widgets/qml/TabButtonExt.qml
index 92414d58f5..0ced9b3ef9 100644
--- a/modules/gui/qt/widgets/qml/TabButtonExt.qml
+++ b/modules/gui/qt/widgets/qml/TabButtonExt.qml
@@ -38,7 +38,7 @@ T.TabButton {
     property string iconTxt: ""
     property int iconSize: VLCStyle.icon_normal
     property bool selected: false
-    property color color: focusBackground.foregroundColor
+    property alias color: focusBackground.defaultForeground
     property bool busy: false
 
     font.pixelSize: VLCStyle.fontSize_normal
@@ -93,7 +93,7 @@ T.TabButton {
 
             Widgets.ListLabel {
                 text: control.text
-                color: control.color
+                color: focusBackground.foregroundColor
             }
         }
 
    
    
More information about the vlc-commits
mailing list