From 0e718da67fc78af3cc136e353b4f7ef1aa7e49ed Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Sat, 23 Nov 2024 05:07:49 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkdeclarative Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: https://github.com/linuxdeepin/dtkdeclarative/pull/421 --- qt6/src/qml/ArrowListView.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qt6/src/qml/ArrowListView.qml b/qt6/src/qml/ArrowListView.qml index 94bc24f9..ec16f967 100644 --- a/qt6/src/qml/ArrowListView.qml +++ b/qt6/src/qml/ArrowListView.qml @@ -49,6 +49,20 @@ FocusScope { } interactive: Window.window ? (contentHeight > Window.window.height || model.count > maxVisibleItems) : false ScrollIndicator.vertical: ScrollIndicator { } + highlight: Rectangle { + anchors.left: parent.left + anchors.right: parent.right + anchors.leftMargin: 6 + anchors.rightMargin: 6 + anchors.topMargin: 6 + anchors.bottomMargin: 6 + property D.Palette backgroundColor: DS.Style.highlightPanel.background + color: D.ColorSelector.backgroundColor + radius: 6 // TODO can't display background when using dtk's InWindowBlur. + } + highlightFollowsCurrentItem: true + highlightMoveDuration: -1 + highlightMoveVelocity: 400 } P.ArrowListViewButton {