themed icons for states

This commit is contained in:
Damocles 2026-04-12 14:37:37 +02:00
parent a67cdbd66f
commit df58449ef5
4 changed files with 13 additions and 4 deletions

View file

@ -17,10 +17,12 @@ M.BarSection {
M.BarIcon {
icon: root.muted ? "\uF026" : (root.volume > 0.5 ? "\uF028" : (root.volume > 0 ? "\uF027" : "\uF026"))
color: root.muted ? M.Theme.base04 : M.Theme.base05
anchors.verticalCenter: parent.verticalCenter
}
M.BarLabel {
label: Math.round(root.volume * 100) + "%"
color: root.muted ? M.Theme.base04 : M.Theme.base05
anchors.verticalCenter: parent.verticalCenter
}