[vlc-devel] [PATCH 04/28] qml: add playlist separator color to VLCColors and use it

Fatih Uzunoglu fuzun54 at outlook.com
Tue Jul 21 19:28:34 CEST 2020


---
 modules/gui/qt/playlist/qml/PlaylistListView.qml | 2 +-
 modules/gui/qt/style/VLCColors.qml               | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 481f09bf90..a6bfd58234 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -310,7 +310,7 @@ Widgets.NavigableFocusScope {
                 Rectangle {
                     width: parent.width
                     height: 1
-                    color: VLCStyle.colors.white
+                    color: VLCStyle.colors.playlistSeparator
                     opacity: VLCStyle.colors.isThemeDark ? 0.05 : 1.0
                 }
             }
diff --git a/modules/gui/qt/style/VLCColors.qml b/modules/gui/qt/style/VLCColors.qml
index 083f9f916d..be4754326f 100644
--- a/modules/gui/qt/style/VLCColors.qml
+++ b/modules/gui/qt/style/VLCColors.qml
@@ -84,8 +84,11 @@ Item {
 
     property color separator: blendColors(bg, text, .95)
 
+    property color playlistSeparator: colors_id.white
+
     // basic color definitions for color blending:
     property color black: "black"
+    property color white: "white"
 
     // glow colors:
     property color glowColor: setColorAlpha(blendColors(bg, black, 0.8), 0.35)
-- 
2.25.1



More information about the vlc-devel mailing list