feat: make nerd font optional

Move hardcodedd nerd fonts codepoints into a table. The default behavior
is still nerdFont. There is no general icon for network so drop the icon
in favor of the very clear up and down arrows.
This commit is contained in:
Cory Todd
2026-03-24 22:01:54 -07:00
parent 948c79fb59
commit 80f7716f21
3 changed files with 94 additions and 36 deletions
+11
View File
@@ -19,6 +19,7 @@ Item {
property bool cfg_showCpuUsage: true
property bool cfg_showMemory: true
property bool cfg_showNetwork: true
property bool cfg_useNerdFont: true
component SectionHeader: ColumnLayout {
property string title: ""
@@ -205,6 +206,16 @@ Item {
}
}
// ── APPEARANCE ────────────────────────────────────────────────────────
SectionHeader { title: "APPEARANCE" }
QQC2.CheckBox {
text: "Use Nerd Font icons (disable for plain Unicode fallback)"
checked: cfg_useNerdFont
onToggled: cfg_useNerdFont = checked
}
Item { Layout.fillHeight: true; Layout.minimumHeight: 16 }
}