[vlc-devel] [PATCH 03/26] qml: use VLCColors.bgHover for selected GridItems

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


---
 modules/gui/qt/widgets/qml/GridItem.qml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index fbfe833688..c8ca04b31e 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -253,7 +253,7 @@ FocusScope {
                 y: - root.selectedBorderWidth
                 width: root.width + ( root.selectedBorderWidth * 2 )
                 height:  root.height + ( root.selectedBorderWidth * 2 )
-                color: VLCStyle.colors.bgAlt
+                color: VLCStyle.colors.bgHover
                 visible: root.selected || root._highlighted
             }
 
@@ -346,6 +346,7 @@ FocusScope {
                         width: pictureWidth
                         horizontalAlignment: root.textHorizontalAlignment
                         topPadding: root.titleMargin
+                        color: selectionRect.visible ? VLCStyle.colors.bgHoverText : VLCStyle.colors.text
                     }
                 }
 
@@ -355,6 +356,9 @@ FocusScope {
                     visible: text !== ""
                     text: root.subtitle
                     width: pictureWidth
+                    color: selectionRect.visible
+                           ? VLCStyle.colors.setColorAlpha(VLCStyle.colors.bgHoverText, .6)
+                           : VLCStyle.colors.menuCaption
                 }
             }
         }
-- 
2.25.1



More information about the vlc-devel mailing list