@@ -24,7 +24,6 @@ Item {
24 property var model
24 property var model
26 property int animDuration: 10
26 property int animDuration: 10
27− property bool useColor: true
29 QtObject {
28 QtObject {
@@ -36,7 +35,6 @@ Item {
36 || circleChangeAnimTimer.running
35 || circleChangeAnimTimer.running
39− // Define a replacement white-based color theme when useColor is false
40 QtObject {
38 QtObject {
41 id: whiteTheme
39 id: whiteTheme
42 property color main: "white"
40 property color main: "white"
@@ -177,10 +175,7 @@ Item {
177 ColorAnimation {
175 ColorAnimation {
178 target: pastCircle
176 target: pastCircle
179 property: "color"
177 property: "color"
180− to: Gradient.threeColorByIndex(index, count,
178+ to: Gradient.threeColorByIndex(index, count, whiteTheme)
182− infographic.model.secondColor :
184 easing.type: Easing.OutCurve
179 easing.type: Easing.OutCurve
185 duration: circleChangeAnimTimer.interval * d.circleModifier
180 duration: circleChangeAnimTimer.interval * d.circleModifier
@@ -242,10 +237,7 @@ Item {
242 ColorAnimation {
237 ColorAnimation {
243 target: presentCircle
238 target: presentCircle
244 property: "color"
239 property: "color"
245− to: Gradient.threeColorByIndex(index, infographic.model.currentDay,
240+ to: Gradient.threeColorByIndex(index, infographic.model.currentDay, whiteTheme)
247− infographic.model.firstColor :
249 easing.type: Easing.OutCurve
241 easing.type: Easing.OutCurve
250 duration: circleChangeAnimTimer.interval * d.circleModifier
242 duration: circleChangeAnimTimer.interval * d.circleModifier