[vlc-devel] [PATCH 05/39] qml: remove colorSelected property from BannerTabButton

Prince Gupta guptaprince8832 at gmail.com
Thu Jan 7 11:50:01 UTC 2021


---
 modules/gui/qt/widgets/qml/BannerTabButton.qml | 3 +--
 modules/gui/qt/widgets/qml/LocalTabBar.qml     | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/BannerTabButton.qml b/modules/gui/qt/widgets/qml/BannerTabButton.qml
index a53e523aea..6688f1a8fd 100644
--- a/modules/gui/qt/widgets/qml/BannerTabButton.qml
+++ b/modules/gui/qt/widgets/qml/BannerTabButton.qml
@@ -28,7 +28,6 @@ T.TabButton {
     id: control
 
     property color color: VLCStyle.colors.banner
-    property color colorSelected: VLCStyle.colors.bg
     property bool showText: true
 
     text: model.displayText
@@ -45,7 +44,7 @@ T.TabButton {
         height: control.height
         width: control.width
         color: (control.activeFocus || control.hovered) ? VLCStyle.colors.accent
-                                                        :  (control.selected ? control.colorSelected : control.color)
+                                                        : control.color
         Behavior on color {
             ColorAnimation {
                 duration: 128
diff --git a/modules/gui/qt/widgets/qml/LocalTabBar.qml b/modules/gui/qt/widgets/qml/LocalTabBar.qml
index dce6b2f591..ac0eadfec0 100644
--- a/modules/gui/qt/widgets/qml/LocalTabBar.qml
+++ b/modules/gui/qt/widgets/qml/LocalTabBar.qml
@@ -33,7 +33,6 @@ NavigableRow {
         selected: model.name === row.currentView
         height: VLCStyle.localToolbar_height
         color: VLCStyle.colors.bg
-        colorSelected: VLCStyle.colors.bg
         onClicked: row.clicked(index)
     }
 }
-- 
2.25.1



More information about the vlc-devel mailing list