vlc | branch: master | Fatih Uzunoglu <[email protected]> | 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 <[email protected]>

> 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);

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to