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 + "% " text: root.percent + "% "
color: M.Theme.base05 color: M.Theme.base05
font.pixelSize: M.Theme.fontSize font.pixelSize: M.Theme.fontSize
font.family: M.Theme.iconFontFamily font.family: M.Theme.fontFamily
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -37,7 +37,6 @@ let
; ;
}; };
fontFamily = f.sansSerif.name; fontFamily = f.sansSerif.name;
iconFontFamily = f.monospace.name;
fontSize = f.sizes.desktop; fontSize = f.sizes.desktop;
barOpacity = 1.0 - config.stylix.opacity.desktop; barOpacity = 1.0 - config.stylix.opacity.desktop;
} }