use symbol font for symbols

This commit is contained in:
Damocles 2026-04-11 12:08:06 +02:00
parent 207d227342
commit b7ee4e2dbb
10 changed files with 79 additions and 32 deletions

View file

@ -2,8 +2,9 @@ import QtQuick
import Quickshell.Io
import "." as M
Text {
Row {
id: root
spacing: 2
property int celsius: 0
@ -19,9 +20,16 @@ Text {
onTriggered: thermal.reload()
}
text: " " + root.celsius + "°C"
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
M.BarIcon {
icon: ""
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
anchors.verticalCenter: parent.verticalCenter
}
Text {
text: root.celsius + "°C"
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}
}