[vlc-commits] qml: add playlist separator color to VLCColors and use it

Fatih Uzunoglu git at videolan.org
Fri Jul 24 11:45:36 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Jul  6 20:16:27 2020 +0300| [6a7e101129b03915e1921ea4a45a263167aadf42] | committer: Pierre Lamot

qml: add playlist separator color to VLCColors and use it

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

 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)



More information about the vlc-commits mailing list