Highligt low supplies
This commit is contained in:
parent
9da439e463
commit
cd90064f9a
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import "../components"
|
|||
property var color: "white"
|
||||
property int level: 100
|
||||
property int high_level: 100
|
||||
property int low_level: 0
|
||||
property int low_level: 10
|
||||
property string name: ""
|
||||
property string type: ""
|
||||
|
||||
|
@ -26,7 +26,7 @@ import "../components"
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: Theme.itemSizeExtraSmall
|
||||
text: ""+(100*level/high_level)+"%"
|
||||
color: Theme.highlightColor
|
||||
color: level <= low_level ? "red" : Theme.highlightColor
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
}
|
||||
Column
|
||||
|
|
Loading…
Reference in a new issue