[vlc-devel] [PATCH 29/49] qml: revert grid items to use a solid background instead of a glowing frame

Pierre Lamot pierre at videolabs.io
Fri Oct 11 15:17:53 CEST 2019


---
 modules/gui/qt/qml/utils/GridItem.qml | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/modules/gui/qt/qml/utils/GridItem.qml b/modules/gui/qt/qml/utils/GridItem.qml
index 755694df61..1cbb760989 100644
--- a/modules/gui/qt/qml/utils/GridItem.qml
+++ b/modules/gui/qt/qml/utils/GridItem.qml
@@ -56,11 +56,10 @@ Rectangle {
 
     property int index: 0
 
-    Rectangle {
+    Item {
         id: gridItem
         width: childrenRect.width
         height: childrenRect.height
-        color: "transparent"
         
         MouseArea {
             id: mouseArea
@@ -91,17 +90,11 @@ Rectangle {
                     id: cover_bg
                     width: picture.width
                     height: picture.height
-                    color: (cover.status !== Image.Ready) ? VLCStyle.colors.banner : "transparent"
 
-                    RectangularGlow {
-                        visible: picture.highlighted || mouseArea.containsMouse
-                        anchors.fill: cover
-                        spread: 0.1
-                        glowRadius: VLCStyle.margin_xxsmall
-                        color: VLCStyle.colors.getBgColor(
-                                   selected, mouseArea.containsMouse,
-                                   root.activeFocus)
-                    }
+
+                    color: VLCStyle.colors.getBgColor(
+                               selected, mouseArea.containsMouse,
+                               root.activeFocus)
 
                     RoundImage {
                         id: cover
-- 
2.20.1



More information about the vlc-devel mailing list