native: make the collums altenate colors

This commit is contained in:
Johannes Jöns 2024-07-11 23:26:40 +02:00
parent c0a84f9bc8
commit 6c48ccd73b

View file

@ -133,7 +133,7 @@ Rectangle {
delegate: Rectangle { delegate: Rectangle {
width: listView.width width: listView.width
height: 50 height: 50
color: getColors().button color: (index % 2 === 0) ? getColors().button : getColors().highlight // Alternating row colors
RowLayout { RowLayout {
anchors.fill: parent anchors.fill: parent