mirror of
https://github.com/samjage/weather-and-stats.git
synced 2026-06-06 00:20:42 +00:00
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:
@@ -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 }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user