Ensure no decimals in supply level rendering
This commit is contained in:
parent
813e1edb6a
commit
0874122bda
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ import "../components"
|
||||||
{
|
{
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: Theme.itemSizeExtraSmall
|
width: Theme.itemSizeExtraSmall
|
||||||
text: ""+(100*value_fraction)+"%"
|
text: ""+Math.round(100*value_fraction)+"%"
|
||||||
color: level <= low_level ? "red" : Theme.highlightColor
|
color: level <= low_level ? "red" : Theme.highlightColor
|
||||||
font.pixelSize: Theme.fontSizeExtraSmall
|
font.pixelSize: Theme.fontSizeExtraSmall
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue