442. Fonts and theming
KDOS Modern is the look of KDOS on Plasma: eight accents, each a colour scheme and a global theme, the kdos Plasma style, the KDOS icons, the square Breeze title bar, Noto Sans for the interface and JetBrains Mono for fixed-width text. This page covers changing the accent and what it reaches, Phosphor mode, the fonts and how fontconfig chooses them, and how GTK, Qt 5 and boxed applications follow the theme. Why the look is built this way is in Theming and The design language.
Installation
| Port | Provides |
|---|---|
| kdos-plasma-look | The eight colour schemes KDOS<Title>.colors, the eight global themes org.kdos.<accent>.desktop, the kdos Plasma style, the desks, the Konsole profiles and qt5ct palettes, and the distribution’s kdeglobals |
| kdos-theme | The generators those files are made with, from the one palette in libkcolor |
| kdos-icons | The KDOS and KDOS-Light icon themes |
| kdos-wallpapers | The KDOS-<Title> wallpapers, one per accent |
| kcm-kdos-look | System Settings → Colors & Themes → KDOS Look: the accent everywhere at once, and Phosphor mode |
| kdos-kwin-motion | Phosphor mode’s window, login and logout motion |
| kdos-tools | kdos theme and kdos phosphor |
| noto-fonts, ttf-jetbrains-mono, terminus-ttf | The interface face, the fixed-width face and the fallback for braille and box glyphs |
| noto-fonts-extra | The base’s faces for Arabic, Hebrew, Armenian, Georgian, the Indic scripts, Sinhala, Thai, Lao, Khmer, Myanmar and Ethiopic; Chinese, Japanese and Korean come with noto-cjk, in the lang-zh, lang-ja and lang-ko groups |
| noto-cjk-prefer-ja, noto-cjk-prefer-zh, noto-cjk-prefer-ko | Each language group’s default CJK face: which of Noto Sans CJK’s variants draws Han text that names no language |
| kde-gtk-config | Carries the colours, fonts and cursor to GTK programs |
| qt5ct | Carries the KDOS palette to Qt 5 programs |
The eight accents are phosphor, amber, ice, bone, norton, borland, perfect and paper. bone is the default and paper the one light accent.
Configuration
The distribution’s defaults
/usr/share/kdos/xdg/kdeglobals, installed by kdos-plasma-look, holds the fonts, the terminal, the global theme and its light and dark pair, the animation speed, and the icon and sound themes. From src/desktop/kdos-plasma-look/xdg/kdeglobals:
[General]
# Noto Sans for the interface and JetBrains Mono for every fixed-width text.
# plasma-integration's built-in monospace is Hack, which is not installed: an
# unset `fixed` is a request for a face that does not exist, answered by
# whatever fontconfig substitutes.
font=Noto Sans,10
menuFont=Noto Sans,10
toolBarFont=Noto Sans,10
smallestReadableFont=Noto Sans,8
fixed=JetBrains Mono,10
# Greyscale antialiasing with slight hinting, which renders the same at every
# fractional scale. The Fonts page and the X resources Xwayland programs read
# both take these three keys; fontconfig's own defaults (conf.d 10-*) already
# match them for everything else.
XftAntialias=true
XftHintStyle=hintslight
XftSubPixel=none
# The terminal a "Run in terminal" entry, Dolphin's Shift+F4 and every
# Terminal=true launcher open.
TerminalApplication=konsole
TerminalService=org.kde.konsole.desktop
src/desktop/kdos-plasma-look/xdg/kdeglobals, lines 31–53
The global theme applies the same fonts, the colour scheme, icons and widget style into ~/.config/kdedefaults at login, and a person’s choice on any Appearance page lands in ~/.config/kdeglobals above both. The machine’s own accent, the one a new account starts in, is LookAndFeelPackage in /etc/xdg/kdeglobals, which the installer writes.
The same file makes KNewStuff unavailable on every machine, so no Get New… button appears: the KDOS add-ons ship as the kdos-addons package instead.
The fixed-width face
monospace is a fontconfig list, and the first face in it with a glyph draws that glyph. KDOS puts JetBrains Mono first, Noto Sans Mono second for the Latin, Greek and Cyrillic it lacks, and Terminus third for braille patterns and box drawing, from fs/etc/fonts/conf.d/45-kdos-mono.conf:
<alias>
<family>JetBrains Mono</family>
<default><family>monospace</family></default>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>JetBrains Mono</family>
<family>Noto Sans Mono</family>
<family>Terminus (TTF)</family>
</prefer>
</alias>
</fontconfig>
fs/etc/fonts/conf.d/45-kdos-mono.conf, lines 45–57
Han text and the language groups
Chinese, Japanese and Korean share one block of Han code points and draw many of them differently, so Noto Sans CJK carries a variant per language. Text that names its language (a web page’s lang, a document’s language) gets that language’s variant from noto-cjk’s 70-noto-cjk.conf. Every other piece of text, which in an en_US.UTF-8 session is nearly all of it, gets the first CJK face in sans-serif, serif or monospace, and fontconfig’s own 65-nonlatin.conf lists Noto Sans CJK KR first for sans-serif and monospace. Each language group therefore installs a default of its own, /etc/fonts/conf.d/64-noto-cjk-prefer-<lang>.conf: lang-ja puts Noto Sans CJK JP first, lang-zh Simplified Chinese (SC) and lang-ko Korean (KR), and the matching Noto Sans Mono CJK variant for monospace. It sits after the Latin and script preferences, so Noto Sans, DejaVu and the noto-fonts-extra faces keep their scripts, and before 65-nonlatin.conf. With two groups installed, the lower file name wins: ja before ko before zh.
The accent outside the session
The screens before a login, which are root’s, wear the machine’s accent from /etc/kdos/accent: the boot menu, the splash, the text consoles’ palette /etc/vtrgb, and the SDDM greeter, whose files kdos-powerd copies into the sddm account. kdos theme asks kdos-powerd to change them, which it does with no password for root, for members of wheel, and for anyone in the active session at the machine; a login outside wheel that is not the active session at the machine (over SSH, or switched away from) is refused.
Usage
Changing the accent
System Settings → Colors & Themes → KDOS Look, and pick a swatch; or
kdos theme amber kdos theme list # the eight, and which is in force kdos theme next # or prevPlasma switches to the accent’s global theme and repaints.
kdos themealso writes the terminal programs’ own colour files in your home (mc,tmux,yazi,newsboat, git’s delta,fzf,lsand qt5ct), switches Konsole’s profile, moves the wallpaper and the lock screen’s wallpaper to the accent’s own while they still name a KDOS one, and repaints the boot menu, splash, consoles and greeter.
Picking a KDOS global theme on the stock Global Theme page does the same: kded-kdos notices and runs kdos theme --from-plasma. A wallpaper, a Konsole profile or a colour scheme you chose yourself is left as it is.
Light and dark
paper is the light accent. System Settings → Global Theme has the light and dark pair, paper and bone by default, and the automatic switch at sunset, off by default.
Phosphor mode
Phosphor mode adds a CRT pass over the whole screen and phosphor motion to windows, the login and the logout, and switches to the phosphor accent:
kdos phosphor on # --preset retro, --terminus for the Terminus face
kdos phosphor status
kdos phosphor off # puts back every key it changed
or the switch on the KDOS Look page. The CRT pass needs GPU rendering: on software rendering, which a plain virtual display gives, on refuses before it changes anything.
Changing the fonts
System Settings → Text and Fonts → Fonts sets the general, fixed-width, small, toolbar, menu and title-bar fonts, antialiasing and hinting. Adjust All Fonts scales them together. The change applies to KDE programs at once and to GTK programs through kde-gtk-config.
A font of your own goes in ~/.local/share/fonts/; fc-cache -f makes it known at once.
GTK, Qt 5 and boxed applications
- GTK programs take the colours, fonts, icons and cursor from kde-gtk-config; GTK 4 ones read them through the portal’s Settings interface, served by xdg-desktop-portal-gtk, and GTK 3 ones do too under
GTK_USE_PORTAL=1. A running GTK 3 program repaints on an accent switch, through thecolorreload-gtk-modulekde-gtk-config’sorg.gtk.Settingsnames, which gtk3 is patched to read beside the portal; a GTK 4 one at its next start. File dialogs come from the KDE portal for GTK 4 and for GTK 3’s native chooser (GTK_USE_PORTAL=1). - Qt 5 programs load the qt5ct platform theme under the name
kdeand read the KDOS palettekdos themewrites into~/.config/qt5ct/. - Boxed GTK applications are started with
GTK_THEMEset to the theme kde-gtk-config names,:darkadded for the dark variant, and read itscolors.cssfrom the shared home, so a running one takes a new accent at its next start; Qt ones readkdeglobalsor the GTK platform theme. See Theming applications inside boxes.
Tips
kdos theme --auditcompares the files in force with what the palette makes and lists any that differ.- Reduced motion: System Settings → General Behavior → Animation speed to Instant, which also stops Phosphor mode’s degauss and collapse.
fc-match monospaceandfc-match -s monospace | headshow the fallback chain in force.
Troubleshooting
kdos theme prints boot menu, splash and login screen unchanged (…). The text in brackets says why. kdos-powerd did not answer means the daemon is not running (service status powerd) or the command ran inside a box; not permitted means it ran outside the active session at the machine (over SSH, or in a session switched away from), from an account outside wheel. Plasma’s part was still applied.
A program draws in Breeze’s colours. It started outside the session’s environment, with no /usr/share/kdos/xdg in XDG_CONFIG_DIRS; see Session and environment. A Qt 5 program needs QT_QPA_PLATFORMTHEME=kde, which every login shell sets.
Kanji or hanzi take another language’s shapes. fc-match -s sans-serif | grep -m1 CJK names the variant unlabelled Han text gets. With no CJK package installed nothing matches and the text shows as boxes; with noto-cjk installed alone (sudo kdos update install noto-cjk) it is Noto Sans CJK KR; sudo kdos update install lang-ja (or lang-zh) installs the default for that language, and a program started afterwards draws with it. With several groups installed, ja comes before ko and ko before zh (see Han text and the language groups).
Box-drawing or braille characters look wrong in Konsole. fc-match -s monospace must list Terminus before any proportional face; check that 45-kdos-mono.conf is in /etc/fonts/conf.d/ and run fc-cache -f.
kdos phosphor on refuses. KWin is on software rendering: qdbus6 org.kde.KWin /KWin supportInformation | grep -i 'OpenGL renderer' names llvmpipe. See Graphics drivers.
Known gaps
- Known gaps: the desktop’s open items
See also
- Theming: the accents, Phosphor mode, wallpapers and fonts
- The design language: the palette and the rules every surface follows
- kdos theme: every option
- Displays and scaling, Accessibility, Locale and console