diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-14 18:19:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-14 18:19:36 +0200 |
| commit | 299cd762de30b5ae162cf599e929b61752645077 (patch) | |
| tree | 2cee2ace27e81fa354370598c8e50aded73e9000 /shared/Theme.qml | |
| parent | 562273597fa3831363d9ac4a30b7263b7bc69b3e (diff) | |
| download | quickshell-299cd762de30b5ae162cf599e929b61752645077.tar.gz quickshell-299cd762de30b5ae162cf599e929b61752645077.zip | |
feat(desktop): pin glyphs to Inconsolata Nerd Font
Glyphs are Nerd Font private-use codepoints, and relying on per-codepoint fontconfig fallback from Noto Sans let the same codepoint resolve to a different glyph in a different Nerd Font.
A Theme.iconFamily now names the render family once, and every glyph Text uses it, while fontFamily stays Noto Sans for words and labels. The ethernet glyph moves from \uf6ff to \uef44, the fa-ethernet codepoint present in Inconsolata.
Diffstat (limited to 'shared/Theme.qml')
| -rw-r--r-- | shared/Theme.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/Theme.qml b/shared/Theme.qml index 423dd49..6f172e7 100644 --- a/shared/Theme.qml +++ b/shared/Theme.qml @@ -39,6 +39,12 @@ Singleton { readonly property string fontFamily: "Noto Sans" readonly property int fontSize: 16 + // Glyphs are Nerd Font private-use codepoints. They render with this + // family, not fontFamily: fontconfig otherwise falls back per codepoint + // and the same codepoint can be a different glyph in a different Nerd + // Font. Inconsolata Nerd Font is the desktop's monospaced font. + readonly property string iconFamily: "Inconsolata Nerd Font" + // Parsed rather than imported: a generated file cannot be a QML import // without a qmldir next to it, and the cache directory has no reason to // carry one. The format is fixed and machine-written, so a regex is enough. |
