[vlc-commits] qml: add borders around Music Expand delegate

Prince Gupta git at videolan.org
Mon Jan 4 13:37:45 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec 11 22:42:57 2020 +0530| [f44b4191822f85dbe20c0edbc15d784c5b7a2932] | committer: Pierre Lamot

qml: add borders around Music Expand delegate

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 .../qml/MusicAlbumsGridExpandDelegate.qml            | 20 ++++++++++++++++++++
 modules/gui/qt/style/VLCStyle.qml                    |  1 +
 2 files changed, 21 insertions(+)

diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
index 0fa629badd..b3b01c20c8 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
@@ -36,6 +36,26 @@ Widgets.NavigableFocusScope {
     Rectangle {
         anchors.fill: parent
         color: VLCStyle.colors.bgAlt
+
+        Rectangle {
+            anchors {
+                top: parent.top
+                left: parent.left
+                right: parent.right
+            }
+            color: VLCStyle.colors.buttonBorder
+            height: VLCStyle.expandDelegate_border
+        }
+
+        Rectangle {
+            anchors {
+                bottom: parent.bottom
+                left: parent.left
+                right: parent.right
+            }
+            color: VLCStyle.colors.buttonBorder
+            height: VLCStyle.expandDelegate_border
+        }
     }
 
     RowLayout {
diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index 56a8020d8b..d14c256975 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -167,6 +167,7 @@ Item {
     property int expandCover_music_height: dp(171, scale)
     property int expandCover_music_width: dp(171, scale)
     property int expandCover_music_radius: gridCover_radius
+    property int expandDelegate_border: dp(1, scale)
 
     property int artistGridCover_radius: dp(90, scale)
 



More information about the vlc-commits mailing list