Skip to the text
KDOS
Menu

The design language

This chapter is the specification of how KDOS looks: the identity called KDOS Modern that it paints over KDE Plasma, from the boot menu to the lock screen, and the opt-in Phosphor mode layered on top of it. It covers the eight accents and the colour roles they become, the type, the pieces Plasma loads to wear the look (colour schemes, global themes, a Plasma style, the window decoration, icons, cursor, wallpapers, sounds), how the screens before and after a login are made to read as one, motion, Phosphor mode, and the smaller rule set of KDOS’s text-mode tools. It is written for people adding to the look or writing KDOS code that draws, and for anyone who wants to know why the desktop looks the way it does.

How a person switches accents and what each control changes is in Theming; the code side of a settings page, widget or effect is in Writing desktop software. Read The architecture overview first for where Plasma and KDOS’s own components sit.

The identity is data Plasma already loads

KDOS does not fork Plasma’s look. Every piece of KDOS Modern is a file in a format Plasma already reads, installed where Plasma already looks, so the stock settings pages (Global Theme, Colours, Plasma Style, Window Decorations, Icons, Cursors, Splash Screen, Wallpaper, System Sounds) show KDOS’s choices beside KDE’s and can change any of them. Four rules hold the kit together:

The ports that carry it:

Port Installs
kdos-theme (src/art) The build-time generator of every colour file below, and the eight editor themes KDOS-<Title>.theme it writes into /usr/share/org.kde.syntax-highlighting/themes
kdos-plasma-look (src/desktop) The eight colour schemes and global themes, the kdos Plasma style, the three desk layouts, the Konsole schemes and profiles, the Qt 5 palettes, the login screen’s files per accent, and the distribution’s kdeglobals
kdos-icons (src/art) The icon themes KDOS and KDOS-Light, the KDOS marks, and the default cursor theme for programs that name none
kdos-wallpapers (src/art) The wallpaper KDOS-<Title> in each accent
kdos-sounds (src/art) The sound theme kdos
kdos-sddm-theme (src/art) The login screen, /usr/share/sddm/themes/kdos
kdos-splash (src/art) The boot splash
kdos-kwin-motion (src/desktop) and the kdos_crt effect built into kwin Phosphor mode
breeze, breeze-gtk, kde-gtk-config, ocean-sound-theme, ttf-jetbrains-mono (ports/core) The upstream pieces the look is built over: the decoration, the cursors, the GTK theme and its bridge, the sounds KDOS inherits, the fixed-width face

Colour

There are eight accents, and every colour KDOS shows comes from one of them. Each accent is one row of libkcolor’s palette table (KCOL_SCHEMES in kcolor.h) and holds nine named colours: primary (the accent), dim, secondary, urgent, deep (the ground at the far end from the text: the darkest colour of a dark scheme, the lightest of a light one), text, variant, pdark and backdrop.

Accent Title Light or dark Colour scheme Global theme
phosphor Phosphor dark KDOSPhosphor org.kdos.phosphor.desktop
amber Amber dark KDOSAmber org.kdos.amber.desktop
ice Ice dark KDOSIce org.kdos.ice.desktop
bone Bone dark KDOSBone org.kdos.bone.desktop
norton Norton dark KDOSNorton org.kdos.norton.desktop
borland Borland dark KDOSBorland org.kdos.borland.desktop
perfect Perfect dark KDOSPerfect org.kdos.perfect.desktop
paper Paper light KDOSPaper org.kdos.paper.desktop

bone is the default, named in the table by KCOL_DEFAULT_ID rather than taken from a position, so reordering the table never changes what an unconfigured machine starts in. An accent is light when its ground is (deep at half luma or above), the same rule Plasma’s Global Theme page uses; paper is the one light accent. Plasma’s light and dark switch flips between the account’s dark accent and paper: the distribution’s kdeglobals names org.kdos.bone.desktop as the dark look and feel and org.kdos.paper.desktop as the light one, with automatic switching off, and kdos theme moves the dark half to whichever dark accent is chosen. The Konsole scheme and profile, the Qt 5 palette and the wallpaper of an accent are all named KDOS-<Title>. The desktop draws its icon labels white with a black shadow whatever the scheme; under a light accent, whose wallpaper is light, plasma-desktop’s desktop-label-light.patch puts each label on a rounded black backing at 0.6 opacity, so the white text holds at least 4.5:1 on any wallpaper. The backing follows a change of accent at run time, with no plasmashell restart.

The role mapping

A KColorScheme file is eight colour sets (View, Window, Button, Selection, Tooltip, Complementary, Header and the inactive Header), each two backgrounds and ten roles drawn on them. kdos-theme kde-colors writes one file per accent, and every role is solved against both backgrounds of its set rather than picked. The palette’s dark end is compressed (deep, backdrop and variant are within 1.19:1 of each other), so a mapping judged by eye passes on one background and fails on the other, and the two backgrounds of a set are exactly where KDE draws alternating rows.

Role Taken from
Backgrounds View: variant, and variant 5% towards the text; Window: the window ground (below) and variant; Button: 9% and 11% of the text over deep; Tooltip 13%; Header and Complementary 7%; the inactive Header on deep
ForegroundNormal text; the selection’s text on a Selection
ForegroundInactive The set’s background walked towards its text from 56% until it clears 4.5:1 on both backgrounds
ForegroundActive, ForegroundLink, ForegroundPositive The accent; the selection’s text on a Selection
ForegroundVisited pdark; the selection’s text 30% into the selection on a Selection
ForegroundNegative, ForegroundNeutral urgent and secondary
DecorationFocus The accent
DecorationHover 35% of the way from the focus colour to deep, backed off towards the focus colour until it holds 3:1; on a Selection, the selection 35% further from its text, which the selection’s text holds 4.5:1 on
Selection background On a dark accent, the accent walked towards deep until text holds 4.5:1 on it; on paper, the accent. The alternate row is the selection 10% further towards deep
The selection’s text text on a dark accent, deep on paper

A dark accent’s selection carries the view’s own text. KDE draws the view’s text over the selection colour as often as it draws the selection’s own text on it: Dolphin’s and Breeze’s translucent item selection lays the selection over the view and keeps the label in the view’s text, and Haruna, KSudoku, the Keyboard page’s layout list and every GTK program through Plasma’s bridge do the same. A selection only deep reads on, like the bright accent, leaves that text at under 2:1, so on the seven dark accents the selection is the accent darkened until text holds 4.5:1 on it. On paper the accent under deep holds both. The build measures both cases: the selection’s own roles, and the view’s text over the selection laid at 64% over each view background, Dolphin’s selected item as measured on screen. The Selection’s hover is a fill, not an outline: Plasma’s GTK bridge hands it to GTK as the background of a hovered selected row, under the selection’s text, so it is the selection moved away from that text and held to 4.5:1 under it.

The accent is the focus colour for marks and the link colour for text. Since a dark accent’s selection is not the accent, nothing KDOS draws to show an accent reads the selection. A mark (a rule, an outline, an underline, a sparkline, a swatch’s stripe) reads DecorationFocus (Kirigami.Theme.focusColor in QML, KColorScheme::FocusColor in C++, ColorScheme-ButtonFocus in a Plasma style SVG), the accent held to the 3:1 decoration floor in every set but the Selection. Text in the accent reads ForegroundLink (Kirigami.Theme.linkColor, KColorScheme::LinkText) or ForegroundActive (activeTextColor, KColorScheme::ActiveText), the accent held to the 4.5:1 text floor; focus colour on text holds only 3:1 on an accent that misses 4.5:1. The accent swatches of the Look page, the installer and Welcome Center, the splash’s mark and bar, the meters’ sparklines and scanlines, the key card’s plate and focus frame, the Plasma style’s rules, outlines and underlines, its slider, progress-bar and switch fills and its radio and check marks are drawn in the focus colour; the key card’s section headings, the splash’s percentage and the Phosphor clock’s colon in the link colour. A translucent fill under text, like a task’s focus tint, stays the selection, the colour text is solved to read on. The window decoration’s outline reads the palette’s link colour, the one QPalette role that holds the accent.

Keyboard focus is the focus colour, hover the selection. A Breeze-style push button, tool button, drop-down button or combo box with keyboard focus is outlined in DecorationFocus, the accent, through the breeze port’s button-focus-outline.patch; hovered and pressed buttons keep Breeze’s Highlight outline. Stock Breeze draws focus in Highlight too, which on a dark accent’s darkened selection measures about 1.6:1 against the resting frame, so a focused button barely changes. When focus leaves a button its ring fades from the accent to the resting frame over the style’s animation; a Qt Quick page on qqc2-desktop-style gets the same colour with no fade, and its check boxes and radio buttons show Breeze’s focus underline whenever they have focus. Plasma style buttons are drawn by the Plasma style, not by Breeze, and are not covered by the patch.

The window ground is deep moved towards grey. A colour scheme carries no Light, Mid, Dark or Shadow: KColorScheme derives them from the Window background, and LibreOffice paints its workspace in Mid. Most deep rows have one channel at zero, and from such a ground KColorScheme makes those shades the most saturated colour of the hue at a mid-grey brightness (pure blue on norton, orange on amber). kdos-theme models that derivation and walks the ground towards the grey of its brightest channel until no shade is more than 10 CIELAB chroma units more colourful than the ground. The ground keeps its lightness, and at that depth the move is barely visible: perfect moves most, from 0,15,66 to 31,39,66.

Every accent-coloured role that misses its floor is walked towards the set’s text one percent at a time, so it keeps as much of its hue as the floor allows and never more. [General] AccentColor is never written: Plasma’s colour applicator recolours the Selection, Link and Decoration roles whenever an accent colour is set, and what it would write are not the solved colours. For the same reason “accent colour from wallpaper” stays off.

Contrast is measured at build time

The floors are WCAG 2 contrast ratios: 4.5:1 for every text role, 3:1 for every decoration, each against both backgrounds of its set, 4.5:1 for the view’s text over a translucent selection, and 4.5:1 for the window titles; the five shades Qt derives from the window ground are held to the chroma ceiling above, at the scheme’s own [KDE] contrast, which every merged kdeglobals carries too. kdos-theme measures the palette before it writes a byte and dies when a role misses its floor, and the build of kdos-plasma-look runs kdos-theme contrast over the files as installed, so a scheme that fails is a failed build, never an installed scheme. testing/selftest.sh runs the same measurement.

A process that runs outside a Plasma session (the login screen, a pkexec program, an early autostart entry) reads colours only from the configuration directories, never from Plasma’s per-account defaults, and KColorScheme reads the [Colors:*] groups of kdeglobals, never the scheme file ColorScheme names. So the distribution’s kdeglobals carries the default accent’s colour groups merged in, and the sddm account’s own kdeglobals carries the machine accent’s; without them those processes draw Breeze blue.

Colour in KDOS’s own code

KDOS’s settings pages, widgets, effects, the welcome pages and the login screen take every colour from a role of the colour scheme in force: Kirigami.Theme in QML, KColorScheme or the application palette in C++, uniforms in a shader. testing/preflight.sh refuses a hex colour, a Qt.rgba(), a named colour or a QColor built from numbers anywhere under src/desktop. The few colours that are no scheme’s are generated rather than written: the mascot’s body and the colour its rim is mixed towards, read out of kdos-splash at build time into the splash’s mark.js, and the black of a screen with nothing on it, which every handover of the power-on passes through and which no accent may own.

Type

Use Face Where it is set
Interface, menus, toolbars, window titles Noto Sans 10 kdeglobals font, menuFont, toolBarFont, [WM] activeFont
The smallest readable text Noto Sans 8 smallestReadableFont
Fixed width: Konsole, Kate’s editor, code JetBrains Mono 10 (11 in the Konsole profiles) fixed, and first for monospace in fontconfig
Phosphor mode’s option Terminus (TTF) Set only by kdos phosphor terminus on or kdos phosphor on --terminus

Text is antialiased in greyscale with slight hinting (XftAntialias=true, XftHintStyle=hintslight, XftSubPixel=none), which renders the same at every fractional scale. Qt Quick’s distance-field text, which Plasma’s labels, notifications and KSplash use, reads none of those settings and is subpixel unless QSG_DISTANCEFIELD_ANTIALIASING=gray says otherwise; the session’s plasma-workspace/env/kdos.sh and the login screen’s GreeterEnvironment set it, so every Qt Quick label is greyscale too. The fixed face is named explicitly, because Plasma’s built-in default for an unset fixed key is Hack, which KDOS does not ship. /etc/fonts/conf.d/45-kdos-mono.conf puts JetBrains Mono first for monospace, Noto Sans Mono second for the Latin Extended, Greek and Cyrillic it lacks, and Terminus (TTF) third, the one fixed-width face on the image with every braille pattern that terminal plots draw with, so a missing glyph costs a different fixed-width face and never a proportional one. testing/monofont.py measures each block against that chain. The Konsole profiles turn ligatures off: a terminal has to show what was typed, and JetBrains Mono would join != or -> into one glyph. They open a window of 120 columns by 31 rows, which holds the shipped fastfetch and its prompt whole and still fits a 1366x768 screen above the panel.

Every global theme sets the same fonts, and carries the fonts in [kdeglobals][WM] as well as [kdeglobals][General]: Plasma applies a theme’s fonts from the General group but decides whether the theme has fonts at all from the WM group, so a theme without the WM key never applies them.

The fixed face is KDOS’s typographic signature, used where a monospace means something: the terminal, the editor, the clocks on the login and lock screens, the text of the splash, and the KDOS Phosphor clock widget. Window titles and the rest of the interface stay in Noto Sans.

The pieces of the look

A global theme (a Plasma look-and-feel package) is what binds the pieces together, one per accent under /usr/share/plasma/look-and-feel/org.kdos.<accent>.desktop, generated by genlook.py in kdos-plasma-look. Its contents/defaults names:

Piece Value
Colour scheme KDOS<Title>
Application style Breeze
Plasma style kdos
Icons KDOS, or KDOS-Light for the light accent
Cursor breeze_cursors
Window decoration Breeze (org.kde.breeze), with no side or bottom border
Window placement Centred
Task switcher Thumbnail grid
Splash screen The theme’s own KSplash
Wallpaper KDOS-<Title>

Every package also carries its own splash, its desk layout script, a Kickoff setup script that gives the launcher the KDOS mark and the label “Start”, and three previews. Plasma fills any missing file from Breeze’s package, so a theme without its splash would show Breeze’s; the build refuses a package that lacks one. The previews are drawn by the generator from the scheme’s roles, not captured, so they are exact for every accent with no session to photograph.

The Plasma style

/usr/share/plasma/desktoptheme/kdos draws the panel, popups, tooltips, buttons, the task manager and the pager: square frames, opaque, with a one-pixel rule in the accent. The pager’s cells are never filled, because their labels are drawn in the text colour: the current desktop is an accent outline with a two-pixel accent rule along its bottom. It also draws the slider, the progress bar (the volume and brightness OSD’s among them), the radio and check marks and the switch, filled with the accent (ColorScheme-ButtonFocus) over a hollow track. Breeze fills them with ColorScheme-Highlight, the darkened selection, which on a dark accent parts from its groove at about 1.4:1, and its radio from the ground at about 1.1:1. The track is a faint text-coloured outline around the ground itself, so the fill meets the ground at the focus colour’s 3:1 floor. The switch’s groove and its square handle are outlined in the radio’s ring, at least 4.4:1 against the ground on every accent, where Breeze’s switch parts from a dark ground at about 1.5:1. A popup’s margins are 8 pixels and its insets 4. It falls back to Breeze for everything else and ships no colour file of its own, so it follows whichever scheme is in force. Blur, background contrast and adaptive transparency are off; with no adaptive transparency, Panel Settings shows no Opacity choice, which plasma-desktop’s panel-opacity.patch hides. Each frame is installed at its own path and under solid/, because an opaque panel, a solid dialog and every tooltip and menu ask for the solid/ path by name.

The window decoration

Window frames are Breeze’s decoration, configured rather than replaced: every corner square, the active window’s one-pixel outline in the accent, no gradient, titles aligned left (/usr/share/kdos/xdg/breezerc). Square corners and the accent outline are two options the breeze port’s patch adds, SquareCorners and OutlineHighlight; stock Breeze rounds the title bar’s top corners whatever its settings say. The title bar takes its colours from the scheme’s [Colors:Header] set and the outline from its link colour, the accent itself, so both follow the accent live. A boxed application’s window carries a box glyph before its caption, from the sandbox patches KDOS carries against KWin, KDecoration and Breeze, and its title bar is drawn in the colour scheme of its box’s accent through a KWin window rule per box; see Window rules KDOS writes. A client that draws its own title bar, as a GTK application with a header bar does, draws neither.

Icons

KDOS and KDOS-Light are thin themes over Breeze: each holds the KDOS penguin under the names Plasma draws the KDE logo by (start-here-kde, start-here-kde-symbolic and the Plasma variants), im-google (Online Accounts’ Google provider, which no Breeze release draws) as Breeze’s internet-services, and kgpg as Breeze’s monochrome kgpg-symbolic, so KGpg’s launcher and tray icon follow the scheme instead of showing its dark hicolor padlock. KDOS also carries Breeze Dark’s status, emblem and package marks (data-* and dialog-*, state-*, emblem-*, vcs-*, package-* and a few others): Breeze draws each as a shape in the accent or the positive, neutral or negative colour under a glyph fixed white, which vanishes on the light shapes of a dark accent. The copies draw the glyph in the colour the shape is solved against instead, the window background on a positive, neutral or negative shape and the selection’s text on an accent one, and are made from an installed Breeze Dark by genstatus.py on a development host. Every other icon is inherited from breeze-dark or breeze, then Adwaita, for the GTK symbolic names only Adwaita draws, then hicolor. Adwaita (adwaita-icon-theme) reaches the image because ports/base, the list of what the installation medium carries, names it, not through a depends = of kdos-icons, which builds in an earlier phase than GTK and Adwaita do. The marks themselves are in hicolor: start-here-kdos for the launcher, distributor-logo-kdos and kdos for the About page and /etc/os-release; start-here-kdos is in both themes too, because KIconLoader tries a name’s dash-stripped forms in each theme before the next, and Adwaita’s legacy start-here, GNOME’s foot, would otherwise answer it. No emblem is copied under a name Breeze also draws as an action, so checkmark stays Breeze’s plain tick rather than the filled emblem, and every Breeze Dark name that extends a copied one, such as printer-error-symbolic, is linked to Breeze Dark’s own file so the copy of the shorter name does not answer it. Both themes set FollowsColorScheme=true, which is what makes Breeze’s monochrome icons take the accent: KIconLoader recolours an inherited icon only when the top theme asks for it. GTK and other non-KDE toolkits do no such recolouring and draw those icons in Breeze’s own blue. The marks are raster, the one part of the icon themes that does not follow the accent. GTK 4 reads the same chain; in a Plasma session Celluloid finds three symbolic names in it as missing, which Known gaps describes.

The cursor

One neutral pointer, breeze_cursors, for every accent; /usr/share/icons/default/index.theme names it for programs that name none, Xwayland’s among them. KWin renders a cursor theme’s SVGs as they are, so a pointer per accent would be eight cursor themes and a cursor switch per accent. No shipped profile script exports XCURSOR_THEME or XCURSOR_SIZE: KWin prefers those variables to the Cursors page whenever both are set, and the page would stop working.

Wallpapers

KDOS-<Title> is a Plasma wallpaper package per accent: the KDOS mark on the accent’s own ground in images_dark/, and on the light ground in images/, at four sizes, so the wallpaper follows Plasma’s light and dark switch with no KDOS code. The pictures are generated from the master artwork by kdos-theme wallpaper. A global theme’s wallpaper is a default only for a desktop with none set, and Plasma reads it once per desktop, so an accent applied in a running session would leave the old wallpaper up; kdos theme therefore sets the wallpaper itself, on each desktop whose image is still a KDOS-* package, and the lock screen’s the same way. kdos-addons adds four more wallpaper packages that follow light and dark, chosen from the Wallpaper page like any other.

Sounds

The sound theme kdos holds the machine’s own voices (the login chime, the notification blip, the error buzz, and the device, warning and completion sounds) under the freedesktop names, synthesised at build time by kdos-sfx render, and inherits Plasma’s Ocean theme and then the freedesktop theme for every name it has no voice for. [Sounds] Theme=kdos selects it, and the login and logout sounds are on.

Applications outside KDE

A GTK application wears the Breeze GTK theme, which kde-gtk-config keeps in the scheme’s colours by writing each account’s GTK settings; KDOS writes nothing under ~/.config/gtk-* itself. Chromium is built without its Qt theme, so its initial_preferences start each new profile on the GTK theme and KWin’s title bar, where it follows the scheme like any GTK application. A Qt 5 application has no Plasma integration to read the scheme (there is no KDE Frameworks 5), so it is themed by qt5ct: kdos theme points qt5ct at the accent’s generated palette, and the account skeleton sets KeePassXC, which would otherwise replace that palette with its own, to its classic theme. KTextEditor’s editor (Kate, KWrite, KDevelop) takes its colours from a syntax-highlighting theme, not the scheme, and picks the installed theme whose background is exactly the view’s background, so kdos-theme writes one per accent from the same palette. Tk, FLTK and Java’s Swing and AWT read none of these and draw their own defaults; see Tk, FLTK and Java programs keep their own colours. A boxed application gets the colour scheme and the light or dark preference through the portal’s Settings interface, and the KDE runtime of the box catalogue installs Plasma’s platform theme for the Qt applications in it.

Where the defaults live

KDOS’s defaults for KDE’s settings are files in /usr/share/kdos/xdg, which the session puts after /etc/xdg in XDG_CONFIG_DIRS. A program therefore reads, from strongest to weakest:

  1. the account’s own file in ~/.config;
  2. the account’s Plasma defaults in ~/.config/kdedefaults, written from the global theme, inside a Plasma session only;
  3. the administrator’s /etc/xdg;
  4. KDOS’s /usr/share/kdos/xdg.

/etc/xdg stays the administrator’s, so an edit there outranks KDOS’s default for every account and a package update never collides with it. The image ships a few files there whose keys every process must read whatever its search path. /etc/xdg/kdeglobals holds only [KDE] LookAndFeelPackage, because a process started without XDG_CONFIG_DIRS reads /etc/xdg alone and still has to find the machine’s global theme; beside it are konsolerc, mimeapps.list, the fcitx5 input-method configuration, the boxes menu and two autostart entries, each listed in Configuration. Two KDOS programs write there:

/etc/skel, the template every new home is copied from, ships no panel layout or Plasma defaults file, because one copied into a new home would bypass the global theme and be rewritten at the first login anyway. Its kdeglobals holds only the [KDE] LookAndFeelPackage and DefaultDarkLookAndFeel pair that kdos theme writes outside a session, in the seeded accent. The image seeds /etc/skel with the default accent, and the installer seeds it again, with kdos theme --account <accent>, together with the new account’s home. The accent file, the terminal programs’ colours and qt5ct, which a text console or an SSH login reads, are then the chosen accent’s from the first boot, and every account made later starts in it.

Two more directories go in front of the list on some machines: a virtual machine gets /usr/share/kdos/xdg-vm, which turns off the timed lock, idle dimming, screen blanking, and idle and lid suspend, and the live medium gets /usr/share/kdos/xdg-live. The full list of files is in Configuration.

One look from power-on to the lock screen

The screens a person sees from the boot menu to the desktop are drawn by different programs, and they are made to read as one sequence: the same ground, the same mark in the same place, the same accent. The boot splash holds its settled frame until the compositor’s first mode set. KSplash’s first frame then carries the settled frame’s mark and bar at full opacity, on the same pixels:

The login screen fades in out of black and back to black on a login. Between the compositor’s mode set and KSplash’s first frame the pointer shows on black while ksplashqml starts: under two seconds on a live boot, and up to about four after the first greeter login of a boot (the known gap).

Stage Drawn by What it shows
Boot menu Limine The menu’s text in the accent’s palette, on a plate that is the KDOS artwork’s neutral floor under every accent (Paper’s dark text cannot be read on it, so Paper draws Bone’s menu)
Boot progress kdos-splash, on the framebuffer The mark fading in out of black, the name and release under it (“Kool Desktop Operating System 0.2”), then the boot stages under a segmented bar; at the end of rcS it holds its last frame until the login screen’s compositor replaces it
Login screen SDDM, with the kdos theme on its own KWin Breeze’s login layout with the KDOS mark, the clock in the fixed face, the footer “KDOS 0.2 · Plasma by KDE” naming the release as kdos version does, over the accent’s dark wallpaper dimmed toward the scheme’s ground, its tint kept, until the greeter’s text holds 4.5:1 on the picture’s brightest pixel, fading in out of black and back to black on a login
Session start KSplash, the global theme’s own kdos-splash’s last frame without its stage rows, at the same pixels (but for the rule and the bar, which move up two lines when the release had a line of its own): the mark and the wordmark, its lower half shaded from the scheme’s roles, the two lines under them in Terminus’s scalable face (the name without the release), then the segmented bar carried on from where the boot splash’s stood at the handover: 99% and one segment short, its leading segment pulsing until the desktop is up, so it never moves backwards
Desktop Plasma The KDOS desk in the accent
Lock screen kscreenlocker, with Plasma’s lock screen as plasma-desktop’s patch draws it Breeze’s layout in the accent’s colours and wallpaper, the clock in the fixed face in the band above the mark. The wallpaper is the accent’s package, not dimmed, so the name and “Unlocking failed” over the penguin’s pale belly hold about 3:1
Logout Plasma’s logout screen, stock Breeze Breeze’s own layout in the accent’s colours, wallpaper and fonts

The login screen and the lock screen are drawn by the same Breeze components, and both show the clock in the fixed face. The login screen’s patch also changes the mark, the footer and the background and keeps Breeze’s placement of the clock, between the top of the screen and the user list; only the lock screen moves its clock into the band above the wallpaper’s mark. A global theme cannot change the lock or logout screen (Plasma loads both from the shell package), so the lock screen’s clock is a patch on plasma-desktop, lockscreen-clock.patch. It sets the time and the date in the fixed face and keeps them in the top 19% of the screen, above the wallpaper’s centred mark, leaving the date out when both do not fit there; Breeze would put the date across the mark. The logout screen is Breeze’s in KDOS’s colours.

The login screen reads no light, dark or time-of-day setting, so it always shows a dark accent: the machine’s accent, or for paper its dark partner. The accent reaches the screens before a login through kdos-powerd, because they are root’s files: /etc/kdos/accent for the splash, /etc/vtrgb for the text console, the boot menu’s palette, and the sddm account’s kdeglobals, plasmarc and kcminputrc, copied from /usr/share/kdos/greeter/<accent>/ together with that set’s background.png as /var/lib/sddm/kdos-background.png.

The greeter’s text has a floor. SDDM draws the user’s name, “Login Failed” and the clock in the Complementary set’s text straight over its picture, and the dark wallpaper’s penguin has a nearly white belly behind the name. kdos-theme greeter-globals --sddm therefore writes background.png as the accent’s dark picture with every channel above the scheme’s ground taken toward that ground by one factor in linear light, and every channel at or below it kept, so the picture keeps the ground’s tint and the penguin’s black stays black. The factor is solved so the brightest pixel holds 4.5:1 against that text, then measured on the written pixels and stepped down until they clear it. Holding the brightest pixel bounds every crop a screen’s aspect takes and the blur Breeze lays under the login, because a blur never brightens past what it averages. The greeter’s environment names QT_QPA_PLATFORMTHEME=kde, the session’s platform theme, which its KWin hands on to the on-screen keyboard it starts, so plasma-keyboard draws its keys from the sddm account’s kdeglobals rather than Qt’s built-in light palette. How kdos theme reaches each of them is in kdos theme; the splash and the handover are in The splash.

Motion

KDOS motion is short. kdeglobals sets AnimationDurationFactor=0.5, half of KDE’s own, which every Plasma and KWin animation scales by, and 0 turns every one of them off. That one key is the switch for reduced motion: the Welcome tour’s accessibility and look pages offer it, System Settings’ animation speed slider sets it, and every KDOS motion reads it too.

KDOS Modern adds no motion of its own past that. KWin’s own effects run as KDE ships them, and the login screen fades in and out of black rather than moving, and KSplash’s first frame carries the boot splash’s settled mark and bar at full opacity, after the pointer has shown on black while ksplashqml starts. Phosphor mode adds the motion of a CRT, every duration below scaled by the factor:

What moves Effect Duration
A window opening out of a hairline across its middle kdos_unfold 160 ms
A window closing: folded to a line, the line pinched to a dot kdos_unfold 140 ms
The desktop opening out of a line across the splash when KSplash closes kdos_login 900 ms
Each window folding away while the session quits kdos_quit 450 ms
The whole screen collapsing to a line and a dot at lock and logout kdos_crt 350 ms, then 100 ms
A degauss when the colour scheme’s accent changes kdos_crt 400 ms, one pulse

Two rules hold every motion here. Nothing waits for one: keys and the pointer act on the end state at once, and a motion never shows anything the end state does not. The end state is the picture wherever nothing moves: with the factor at 0, on a software renderer, and in a screenshot, a window is where it ends up and the screen is the screen. The degauss is one pulse, under the three flashes a second that a flashing screen may not exceed.

Phosphor mode

Phosphor mode is the CRT layer, off by default and off for every new account, switched by one command, kdos phosphor on|off, by the switch on the Welcome tour’s look page, and by the kdos_crt entry on System Settings’ Desktop Effects page. It has no keyboard shortcut, so a stray chord cannot flash the whole screen.

kdos phosphor on:

  1. asks KWin whether kdos_crt is supported and refuses, changing nothing, when it is not: the effect needs GPU rendering, and a software-rendered session (a plain virtual machine, make run) prints phosphor mode needs GPU rendering (this session renders in software);
  2. records every key it is about to change, as the account’s own file had it, in ~/.config/kdos/phosphor, so off puts each back exactly;
  3. loads kdos_crt and the three motion effects, and unloads KWin’s own login and sessionquit effects, which two of them replace;
  4. switches bone or paper, the two accents that do not read as a CRT, to phosphor, and keeps any other accent as chosen; off restores the previous one;
  5. with the Terminus option, sets the fixed face and a Konsole profile to Terminus (TTF); the interface stays in Noto Sans, because Terminus covers Latin, Greek and Cyrillic only;
  6. sets the boot splash’s motion to the CRT power-on.

The effect is built into KWin by a patch KDOS carries (kdos-crt.patch in the kwin port), because KWin refuses an effect built outside it against any other KWin release, point releases included. It paints each output into an offscreen picture and draws it back through a CRT shader: a horizontal bleed, scanlines, a vignette, barrel curvature and a faint floor in the accent. Two presets, chosen with kdos phosphor preset subtle|retro or kdos phosphor on --preset <name>, set its three values in kwinrc [Effect-kdos_crt]:

Preset Strength Scanlines Curve
Subtle (the default) 55 0 0
Retro 55 60 30

What it costs, and when it stands aside:

The effect’s state and its power-down are exported on KWin’s bus name as io.kdos.Crt1 at /io/kdos/Crt1, which kdos phosphor collapse|unfold|degauss calls. How to switch it, and its effect on accessibility, are in Theming.

Desks

How the panels are laid out is part of the look, and KDOS ships three layouts, the desks, as Plasma layout templates: KDOS (one bottom panel, the default), Dock (a top bar and a centred floating dock) and Tiling (a top bar, with automatic tiling on). Every global theme’s layout script lays out the desk the account picked (kdosrc [Desk] Layout), never a fixed one, so applying any accent’s layout gives back the same panels. The Welcome tour’s Desk page offers the three, kdos desk switches between them, and switching replaces the panels after copying the old arrangement aside. The desks themselves are in The desktop; what the Tiling desk does to windows is in The window model.

The text tools

A few KDOS programs draw in a terminal rather than on Plasma: the installer’s text front end (kinstall, for serial and unattended installs) and the build’s own front end kdosbuild among them. They draw with libktui, KDOS’s cell toolkit, and follow the same palette through libkcolor’s eight slots:

Slot Role Scheme colour
KT_ACCENT The accent primary
KT_ERR Urgent urgent
KT_WARN A caution, not a failure secondary
KT_TEXT Body text text
KT_MID Labels, secondary text, rules pdark
KT_DIM A fill dim
KT_SURFACE Raised chrome background variant
KT_BG The background backdrop

There are eight slots and no more because the console font has 512 glyphs: the Linux console uses the foreground intensity bit as the ninth glyph bit, so colours 8 to 15 cannot be a foreground. Designing for eight means a text console and a terminal window show the same picture. Where a program does reach bright black (colour 8: SGR 90, or bold 30), the console palette /etc/vtrgb and the terminal palettes give it kcol_muted(), never dim, so de-emphasised text in htop, ls or vim holds 4.5:1 on the ground; the login banner’s penguin body is drawn in it. Three rules follow from the measured contrasts:

The glyph tiers

What a text tool can draw depends on the terminal. libktui picks a tier from its capabilities:

Tier When Box drawing and symbols Bars and charts
rich UTF-8, not a Linux console glyph_utf8 Eighth blocks, 8 levels
vt UTF-8 on a Linux console glyph_utf8 ░ ▒ █, 3 levels
ascii No UTF-8 glyph_ascii . : #, 3 levels

The box-drawing and symbol table, glyph_utf8 in src/libs/libktui/ktui_draw.c, is the same for the rich and vt tiers, so it stays inside what the console font ter-kdos32n can draw: a character the font lacks is a blank on the console, and nothing reports it. The font has ░ ▒ █, the single box-drawing set, the double rules ═ ║, the double corners ╔ ╗ ╚ ╝ and ╬, and · • ■ … ° ↑ ↓ ◀ ▶; it has no eighth or half blocks, no ▓, no braille, and no double tees. testing/preflight.sh reads the built font and refuses a glyph_utf8 entry it cannot draw. A frame’s title is bracketed [ like this ] in ASCII, because the brackets read the same at all three tiers. Display width is measured by the toolkit’s own table, ktui_wcwidth, and a wide character on the console, whose font has none, is written as one ?.

The checklist

KDOS code that draws on the desktop (a settings page, a widget, an effect, a welcome page, a theme) is not finished until every line is answered:

  1. Every colour from a role of the scheme in force (Kirigami.Theme, KColorScheme, a shader uniform), and none written as a literal; the preflight check passes.
  2. Readable in all eight accents, paper included, and at the 4.5:1 text floor in each.
  3. Text in the interface face; the fixed face only where a monospace means something.
  4. Every motion through animationTime() or Kirigami’s durations, so AnimationDurationFactor scales it and 0 stops it, with the end state complete on its own.
  5. An accessible name on every control, so the screen reader can say what it is.
  6. Square where KDOS draws a frame; Breeze’s own components wherever Plasma provides one.
  7. Nothing written into a person’s settings unless the value there is still KDOS’s own.

A text tool answers a shorter list: colour from slots, KT_MID for labels, fills for emphasis, the selection drawn by ktui_sel_row(), and a look at the vt tier before believing it works on the console.

See also


Part III — Architecture, chapter 18. Previous: 17. The security model · Contents · Next: 19. The window model