[vlc-commits] qml: allow forcing color scheme in Play Control Button

Prince Gupta git at videolan.org
Mon Feb 8 10:00:12 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Jan 18 21:02:31 2021 +0530| [5ec58b75b7157ffb2c28b47ac9520185eb0797d2] | committer: Pierre Lamot

qml: allow forcing color scheme in Play Control Button

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 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
 



More information about the vlc-commits mailing list