Commit 218b34ca authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[ListViewHighlight] account for count == 0, set default index to -1

parent 2d431b75
......@@ -7,10 +7,10 @@ import org.kde.kirigami 2.14 as Kirigami
Kirigami.ShadowedRectangle {
id: root
property int currentIndex: 0
property int currentIndex: -1
property int count: 0
readonly property real topRadius: root.currentIndex == 0 ? Kirigami.Units.smallRadius : 0
readonly property real bottomRadius: root.currentIndex == root.count-1 ? Kirigami.Units.smallRadius : 0
readonly property real bottomRadius: root.currentIndex == Math.max(root.count-1, 0) ? Kirigami.Units.smallRadius : 0
Kirigami.Theme.colorSet: Kirigami.Theme.Selection
Kirigami.Theme.inherit: false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment