[vlc-devel] [PATCH 21/33] qml: allow forcing color scheme in Play Control Button

Prince Gupta guptaprince8832 at gmail.com
Wed Feb 3 10:56:37 UTC 2021


---
 modules/gui/qt/player/qml/ControlButtons.qml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/player/qml/ControlButtons.qml b/modules/gui/qt/player/qml/ControlButtons.qml
index 5c530b3c36..f6d5ab1daf 100644
--- a/modules/gui/qt/player/qml/ControlButtons.qml
+++ b/modules/gui/qt/player/qml/ControlButtons.qml
@@ -150,14 +150,16 @@ Item{
 
         ToolButton {
             id: playBtn
+
             width: VLCStyle.icon_medium
             height: width
 
             // TODO: Bind videoOverlays (set 'true' below) to player property which indicates if video is rendered over player controls
             property bool videoOverlays: !isMiniplayer && true
 
-            property color color: VLCStyle.colors.buttonText
-            property color colorDisabled: VLCStyle.colors.textInactive
+            property VLCColors colors: VLCStyle.colors
+            property color color: colors.buttonText
+            property color colorDisabled: colors.textInactive
 
             property bool acceptFocus: true
 
-- 
2.25.1



More information about the vlc-devel mailing list