From f7497eeb8b9021f2a59a473414a3de9465e1d2ca Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Sun, 28 Aug 2022 09:54:16 +0300 Subject: [PATCH] Fixup! Use correct theme color --- application/qml/components/BatteryGraph.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/qml/components/BatteryGraph.qml b/application/qml/components/BatteryGraph.qml index e0cce2d..7fd3875 100644 --- a/application/qml/components/BatteryGraph.qml +++ b/application/qml/components/BatteryGraph.qml @@ -71,7 +71,7 @@ Item { anchors.horizontalCenter: parent.horizontalCenter width: 2 * borderSize height: 1.5 * borderSize - color: Theme.highlightBackgroundColor + color: Theme.secondaryColor radius: borderSize / 2 } Rectangle { @@ -83,7 +83,7 @@ Item { } width: parent.width * 0.75 color: "transparent" - border.color: Theme.highlightBackgroundColor + border.color: Theme.secondaryColor border.width: borderSize radius: borderSize @@ -96,7 +96,7 @@ Item { height: (borderSize) + ((parent.height - 4 * borderSize) * _charge / 100.0) radius: borderSize / 2 opacity: 1.0 - color: _charge >= 80 ? Theme.highlightBackgroundColor + color: _charge >= 80 ? Theme.secondaryColor : _charge >= 50 ? Theme.highlightFromColor("green", Theme.colorScheme) : _charge >= 20 ? Theme.highlightFromColor("yellow", Theme.colorScheme) : Theme.highlightFromColor("red", Theme.colorScheme)