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