Skip to content

Commit f67b4e6

Browse files
deepin-ci-robotkegechen
authored andcommitted
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#421
1 parent c39d497 commit f67b4e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

qt6/src/qml/ArrowListView.qml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ FocusScope {
4949
}
5050
interactive: Window.window ? (contentHeight > Window.window.height || model.count > maxVisibleItems) : false
5151
ScrollIndicator.vertical: ScrollIndicator { }
52+
highlight: Rectangle {
53+
anchors.left: parent.left
54+
anchors.right: parent.right
55+
anchors.leftMargin: 6
56+
anchors.rightMargin: 6
57+
anchors.topMargin: 6
58+
anchors.bottomMargin: 6
59+
property D.Palette backgroundColor: DS.Style.highlightPanel.background
60+
color: D.ColorSelector.backgroundColor
61+
radius: 6 // TODO can't display background when using dtk's InWindowBlur.
62+
}
63+
highlightFollowsCurrentItem: true
64+
highlightMoveDuration: -1
65+
highlightMoveVelocity: 400
5266
}
5367

5468
P.ArrowListViewButton {

0 commit comments

Comments
 (0)