From 5a23a80dd1bb8a865dffe386730565bbf23b0e1c Mon Sep 17 00:00:00 2001 From: Louis-Joseph Fournier Date: Fri, 8 Jan 2016 19:08:30 +0100 Subject: [PATCH] Toise: try secondary color for not-selected marks --- qml/Toise.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } }