[vlc-devel] [PATCH 22/27] qml: highlight SortControl listitem during keyboard navigation

Fatih Uzunoglu fuzun54 at outlook.com
Fri Dec 4 00:01:57 CET 2020


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

diff --git a/modules/gui/qt/widgets/qml/SortControl.qml b/modules/gui/qt/widgets/qml/SortControl.qml
index a9b91810bb..c84cbf1bf4 100644
--- a/modules/gui/qt/widgets/qml/SortControl.qml
+++ b/modules/gui/qt/widgets/qml/SortControl.qml
@@ -129,6 +129,11 @@ Widgets.NavigableFocusScope {
 
             ScrollIndicator.vertical: ScrollIndicator { }
 
+            highlight: Rectangle {
+                color: _colors.accent
+                opacity: 0.8
+            }
+
             delegate: ItemDelegate {
                 id: itemDelegate
 
@@ -139,6 +144,7 @@ Widgets.NavigableFocusScope {
                 background: Item {}
                 contentItem: Item {
                     implicitHeight: itemRow.implicitHeight
+                    width: itemDelegate.width
 
                     Rectangle {
                         anchors.fill: parent
-- 
2.27.0



More information about the vlc-devel mailing list