Toise: try secondary color for not-selected marks

This commit is contained in:
Louis-Joseph Fournier 2016-01-08 19:08:30 +01:00
parent ca50999bb8
commit 5a23a80dd1

View file

@ -47,6 +47,7 @@ Item {
property int first_mark: Math.floor(position) % nb_marks property int first_mark: Math.floor(position) % nb_marks
property double delta: position - Math.floor(position) property double delta: position - Math.floor(position)
property int idx_modulo: index % nb_marks
Behavior on position { Behavior on position {
NumberAnimation { NumberAnimation {
@ -80,7 +81,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: marks[idx] text: marks[idx]
color: theme.primaryColor color: idx == idx_modulo ? theme.primaryColor : theme.secondaryColor
font.pixelSize: parent.height / 2 font.pixelSize: parent.height / 2
} }
} }