[vlc-commits] qml: add global VLCColors with 'night' state to VLCStyle

Fatih Uzunoglu git at videolan.org
Tue Jan 12 13:20:13 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan  8 00:36:16 2021 +0300| [804b780e91a2a5e64af278e7adda5575b354065d] | committer: Pierre Lamot

qml: add global VLCColors with 'night' state to VLCStyle

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

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

 modules/gui/qt/style/VLCStyle.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index 6a37a6773e..4eb3fa278c 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -36,6 +36,10 @@ Item {
 
     property VLCColors colors: VLCColors {}
 
+    // When trying to force night/dark theme colors for items,
+    // this can be used:
+    property VLCColors nightColors: VLCColors { state: "night" }
+
     // Sizes
     property double margin_xxxsmall: dp(2, scale);
     property double margin_xxsmall: dp(4, scale);



More information about the vlc-commits mailing list