From 63132dc1db02b099de32ea494696aee5f61e0d1d Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Thu, 23 Nov 2017 17:35:46 +0100 Subject: [PATCH] Keeping the progressbar color orange --- components/ProgressBar.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/ProgressBar.qml b/components/ProgressBar.qml index e6e571e0..4b415051 100644 --- a/components/ProgressBar.qml +++ b/components/ProgressBar.qml @@ -101,12 +101,8 @@ Rectangle { property int maxWidth: parent.width - 4 * scaleRatio width: (maxWidth * fillLevel) / 100 radius: 8 - color: { - if(item.fillLevel < 99 ) return "#FA6800" - //if(item.fillLevel < 99) return "#FFE00A" - return "#36B25C" - } - + // could change color based on progressbar status; if(item.fillLevel < 99 ) + color: "#FA6800" } Rectangle {