undo font

This commit is contained in:
Damocles 2026-04-11 00:46:47 +02:00
parent 00838e1d64
commit 207d227342
10 changed files with 8 additions and 12 deletions

View file

@ -33,7 +33,7 @@ Row {
text: root.percent + "% "
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
anchors.verticalCenter: parent.verticalCenter
}
}

View file

@ -7,6 +7,6 @@ Text {
text: icon
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize + 1
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}

View file

@ -32,7 +32,7 @@ Row {
text: root.status === "connected" ? (" " + root.device) : ""
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize + 1
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
anchors.verticalCenter: parent.verticalCenter
}
}

View file

@ -54,6 +54,6 @@ Text {
text: " " + root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2)
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}

View file

@ -33,6 +33,6 @@ Text {
text: " " + root.freePct + "% " + root.totalTb.toFixed(1)
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}

View file

@ -33,6 +33,6 @@ Text {
text: " " + root.percent + "%"
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}

View file

@ -54,7 +54,7 @@ Row {
}
color: M.Theme.base05
font.pixelSize: M.Theme.fontSize + 1
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
anchors.verticalCenter: parent.verticalCenter
}
}

View file

@ -22,6 +22,6 @@ Text {
text: " " + root.celsius + "°C"
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.iconFontFamily
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}

View file

@ -26,7 +26,6 @@ QtObject {
property color base0F: "#f2cdcd"
property string fontFamily: "sans-serif"
property string iconFontFamily: "Symbols Nerd Font Mono"
property int fontSize: 12
property real barOpacity: 0.9
property int barHeight: 32
@ -52,8 +51,6 @@ QtObject {
}
if (data.fontFamily)
root.fontFamily = data.fontFamily;
if (data.iconFontFamily)
root.iconFontFamily = data.iconFontFamily;
if (data.fontSize)
root.fontSize = data.fontSize;
if (data.barOpacity !== undefined)