Toise: try secondary color for not-selected marks
This commit is contained in:
parent
ca50999bb8
commit
5a23a80dd1
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ Item {
|
|||
|
||||
property int first_mark: Math.floor(position) % nb_marks
|
||||
property double delta: position - Math.floor(position)
|
||||
property int idx_modulo: index % nb_marks
|
||||
|
||||
Behavior on position {
|
||||
NumberAnimation {
|
||||
|
@ -80,7 +81,7 @@ Item {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: marks[idx]
|
||||
color: theme.primaryColor
|
||||
color: idx == idx_modulo ? theme.primaryColor : theme.secondaryColor
|
||||
font.pixelSize: parent.height / 2
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue