Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/private/DefaultListItemBackground.qml
Show All 26 Lines | 26 | Rectangle { | |||
---|---|---|---|---|---|
27 | id: background | 27 | id: background | ||
28 | color: highlighted || (controlRoot.pressed && !controlRoot.checked && !controlRoot.sectionDelegate) ? Kirigami.Theme.highlightColor : Kirigami.Theme.backgroundColor | 28 | color: highlighted || (controlRoot.pressed && !controlRoot.checked && !controlRoot.sectionDelegate) ? Kirigami.Theme.highlightColor : Kirigami.Theme.backgroundColor | ||
29 | 29 | | |||
30 | visible: controlRoot.ListView.view ? controlRoot.ListView.view.highlight === null : true | 30 | visible: controlRoot.ListView.view ? controlRoot.ListView.view.highlight === null : true | ||
31 | Rectangle { | 31 | Rectangle { | ||
32 | anchors.fill: parent | 32 | anchors.fill: parent | ||
33 | color: Kirigami.Theme.highlightColor | 33 | color: Kirigami.Theme.highlightColor | ||
34 | opacity: controlRoot.hovered && !controlRoot.pressed ? 0.2 : 0 | 34 | opacity: controlRoot.hovered && !controlRoot.pressed ? 0.2 : 0 | ||
35 | Behavior on opacity { NumberAnimation { duration: 150 } } | | |||
36 | } | | |||
37 | Behavior on color { | | |||
38 | ColorAnimation { duration: 150 } | | |||
39 | } | 35 | } | ||
40 | } | 36 | } | ||
41 | 37 | |