[vlc-devel] [PATCH 15/26] qml: add borders around Music Expand delegate

Prince Gupta guptaprince8832 at gmail.com
Thu Dec 17 17:26:13 UTC 2020


---
 .../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 8ee198f330..b54a2563cb 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -164,6 +164,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)
 
-- 
2.25.1



More information about the vlc-devel mailing list