[vlc-commits] qml: add a dark theme indicator to VLCColors

Fatih Uzunoglu git at videolan.org
Fri Jul 3 14:59:01 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jun 26 23:30:23 2020 +0300| [f5c76db7c8256588e7ab727e39d81a41b3d38e0d] | committer: Pierre Lamot

qml: add a dark theme indicator to VLCColors

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

 modules/gui/qt/style/VLCColors.qml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/style/VLCColors.qml b/modules/gui/qt/style/VLCColors.qml
index a92a090407..c426b6c401 100644
--- a/modules/gui/qt/style/VLCColors.qml
+++ b/modules/gui/qt/style/VLCColors.qml
@@ -44,6 +44,8 @@ Item {
             return "transparent"
     }
 
+    property bool  isThemeDark: false
+
     property color text: systemPalette.text;
     property color textInactive: systemPalette.textInactive;
     property color textDisabled: systemPalette.textDisabled;
@@ -123,7 +125,9 @@ Item {
 
                 accent: "#ff950d";
                 alert: "#ff0000";
-                separator: "#ededed"
+                separator: "#ededed";
+
+                isThemeDark: false;
             }
         },
         State {
@@ -148,6 +152,7 @@ Item {
                 accent: "#ff950d"
                 alert: "#ff0000"
                 separator: "#2d2d2d"
+                isThemeDark: true
             }
         },
         State {
@@ -177,6 +182,8 @@ Item {
                 bannerHover: systemPalette.highlight
 
                 separator: blendColors(bg, text, .95)
+
+                isThemeDark: systemPalette.isDark
             }
         }
     ]



More information about the vlc-commits mailing list