using alternating colors
This commit is contained in:
parent
79da2fbe65
commit
269db49fa4
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ ColumnLayout {
|
||||||
icon: itemIcon
|
icon: itemIcon
|
||||||
iconSize: Kirigami.Units.gridUnit
|
iconSize: Kirigami.Units.gridUnit
|
||||||
supportsMouseEvents: false
|
supportsMouseEvents: false
|
||||||
backgroundColor: Kirigami.Theme.backgroundColor;
|
backgroundColor: index % 2 === 0 ? Kirigami.Theme.backgroundColor : Kirigami.Theme.alternateBackgroundColor;
|
||||||
Binding on backgroundColor {
|
Binding on backgroundColor {
|
||||||
when: dragHandler.containsMouse ||
|
when: dragHandler.containsMouse ||
|
||||||
(selectionModel.hasSelection &&
|
(selectionModel.hasSelection &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue