[vlc-devel] [PATCH 03/55] qml: add global VLCColors with 'night' state to VLCStyle

Fatih Uzunoglu fuzun54 at outlook.com
Thu Jan 7 21:36:16 UTC 2021


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



More information about the vlc-devel mailing list