diff --git a/qml/Toise.qml b/qml/Toise.qml index cd4445c..e52dbc3 100644 --- a/qml/Toise.qml +++ b/qml/Toise.qml @@ -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 } }