Commit b2a04aa3 authored by Marco Martin's avatar Marco Martin

proper color source

parent ee2ff95b
......@@ -64,7 +64,7 @@ Faces.SensorFace {
visible: root.showLegend
chart: compactRepresentation
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
colorSource: globalColorSource
colorSource: root.colorSource
sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : []
}
......
......@@ -61,7 +61,7 @@ Faces.SensorFace {
name: sensor.shortName
value: sensor.formattedValue
colorVisible: !isTextOnly
color: !isTextOnly ? globalColorSource.array[index] : "transparent"
color: !isTextOnly ? root.colorSource.map[modelData] : "transparent"
layoutWidth: root.width
valueWidth: Kirigami.Units.gridUnit * 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment