Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

358.11. kcm-kdos-look-1.0.0

System Settings KDOS Look page — one accent everywhere, and Phosphor mode

The build-state snapshot was taken from 1.0.0-1; this recipe is 1.0.0-2, so the size, time and contents below describe the earlier build.

Version 1.0.0, release 2
Source tree src/desktop/kcm-kdos-look/
Phase 50_desktop (Desktop), 66 of 92 in build order
Licence MIT
Homepage https://github.com/kunaldawn/kdos
Build time 0.1 SBU
Installed size 188.6 KiB in 2 files
Recipe src/desktop/kcm-kdos-look/kpkgbuild

About

kcm-kdos-look is the KDOS Look page of System Settings, under Appearance & Style → Colors & Themes. It holds the two things the stock pages cannot: the one action that carries an accent past Plasma, and Phosphor mode. The eight accents themselves are colour schemes and global themes on the Colors and Global Theme pages. A swatch here runs kdos theme <accent>, which also repaints open Konsole windows, the lock and login screens, the splash, the boot menu and the text consoles, and each swatch is painted from its own KDOS<Label>.colors through KColorScheme. The list of accents is the one kdos theme list prints, so the page offers no accent the command would refuse.

Below the swatches the page compares the three places an accent is held: Plasma’s kdeglobals [General] ColorScheme, the KDOS accent the terminals and command-line tools wear, and /etc/kdos/accent, which the screens before login wear. When Plasma is ahead or the machine behind, Repaint Everything runs kdos theme --from-plasma <Plasma's accent>, the command kded-kdos runs, so Plasma’s choice is kept and not applied twice. The page follows that module over io.kdos.Kded1 at org.kde.kded6 /modules/kdos: while it carries an accent down the page is busy and starts nothing, and when its last run failed while the accents still disagree, its reason is shown above Repaint Everything. The line under the swatches reads the greeter set /usr/share/kdos/greeter/<accent>/kdeglobals for the login screen’s scheme, so a light accent’s dark partner is named, and names the boot menu only where /boot/efi exists.

The Phosphor section reads kdos phosphor status --json and runs kdos phosphor on|off, preset subtle|retro, fullscreen on|off and terminus on|off. With the effect unsupported and the mode off, every option is disabled with the switch, and the record’s refusal picks the page’s own sentence for why.

Every command is an argument vector given to QProcess, never a shell. The port is KDOS’s own code with no upstream source, built with CMake against KF6 KCMUtils, KColorScheme and KConfig.

Why it is in KDOS

The comment above the 5 ports from kcm-kdos-system to kcm-kdos-health in script/phases/50_desktop/packages.txt:

System Settings pages: the A/B slots, boxes, the firewall's named services, the KDOS look and Phosphor mode, and the Health page.

Sources

None: the port builds from its own directory, /kdos/src/desktop/kcm-kdos-look.

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kcolorscheme, kconfig, kcoreaddons, ki18n, kcmutils, kirigami, kdos-tools.

Required by (1): kde-plasma.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install kcm-kdos-look'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /kdos/src/desktop/kcm-kdos-look.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/kcm-kdos-look
SRC=$SRC_ROOT/kcm-kdos-look-1.0.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

cmake -S "$PORT_SRC" -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/kcm-kdos-look, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf kcm-kdos-look-1.0.0-2.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/kcm-kdos-look, and runs the triggers its paths call for.

Other files in the port directory, read by build.sh: CMakeLists.txt, accentmodel.cpp, accentmodel.h, kcm_kdos_look.json, kdedclient.cpp, kdedclient.h, kdoscommand.cpp, kdoscommand.h, lookcontroller.cpp, lookcontroller.h, lookkcm.cpp, tests/, ui/.

Notes

The page has no Apply button: an accent is a command that repaints the machine, and holding it until Apply would show a swatch picked while nothing moved. One command runs at a time, in order, and a second click while one is in flight is refused rather than queued; so is any click while kded-kdos runs kdos theme, because two runs at once would write the same files in an order nobody chose. An accent whose scheme file is not installed is listed and cannot be picked, because applying it would move every surface except Plasma.

The page asks kded-kdos with D-Bus activation off. kded6 belongs to the session, and a settings page that activated one would start a second set of modules in a session that runs without them. With no module answering, the page is the only runner, and Repaint Everything is how a pick made on the Global Theme page reaches the screens before login. A run of the module ends with a signal and starts with none, so the page asks for the module’s state whenever the colour scheme changes and every few seconds while it says it is running.

The page never writes kwinrc, kdeglobals or a Konsole profile itself. What Phosphor mode switches, the pairing of Bone and Paper with the Phosphor accent and what turning it off restores belong to kdos phosphor, which the welcome tour and KRunner run as well. A kdos without the verb answers status --json with an error, and the section then says the mode is not available instead of showing switches that do nothing.