more colors
This commit is contained in:
parent
67e8a27b3d
commit
c4e4b6ebb2
2 changed files with 9 additions and 2 deletions
|
|
@ -8,6 +8,9 @@ M.BarSection {
|
|||
tooltip: "Temperature: " + root.celsius + "\u00B0C"
|
||||
|
||||
property int celsius: 0
|
||||
readonly property color _stateColor: celsius > 80 ? M.Theme.base08
|
||||
: celsius > 60 ? M.Theme.base09
|
||||
: M.Theme.base05
|
||||
|
||||
FileView {
|
||||
id: thermal
|
||||
|
|
@ -23,12 +26,12 @@ M.BarSection {
|
|||
|
||||
M.BarIcon {
|
||||
icon: "\uF2C9"
|
||||
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
|
||||
color: root._stateColor
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
Text {
|
||||
text: root.celsius + "\u00B0C"
|
||||
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
|
||||
color: root._stateColor
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue