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

172.4. kdos-icons-20261028

KDOS icon themes — the KDOS marks over Breeze, following the accent

Version 20261028, release 1
Source tree src/art/kdos-icons/
Phase 41_system (System), 958 of 1047 in build order
Licence MIT AND LGPL-3.0-or-later
Homepage https://github.com/kunaldawn/kdos
Build time 0.1 SBU
Installed size 766.9 KiB in 308 files
Recipe src/art/kdos-icons/kpkgbuild

About

kdos-icons holds KDOS’s two icon themes and its logo marks. KDOS (used with the seven dark accents) and KDOS-Light (used with paper, the light accent) are thin themes over Breeze, KDE’s own icon theme. Each holds:

KDOS also carries Breeze Dark’s status, emblem and package marks, recoloured (see Notes). Every other icon is inherited from breeze-dark or breeze, then Adwaita, then hicolor.

The marks themselves go into hicolor, where any theme finds them: start-here-kdos (the penguin, the Kickoff button the global themes set), and distributor-logo-kdos and kdos (penguin and wordmark, the About page’s logo and /etc/os-release’s LOGO). Both themes also carry start-here-kdos beside start-here-kde.

It also ships /usr/share/icons/default/index.theme, which names breeze_cursors: an application that names no cursor theme of its own, Xwayland’s among them, reads that file. How the themes follow the accent is in How the theme is generated.

Why it is in KDOS

The comment above it in script/phases/41_system/packages.d/src-art.txt:

The KDOS and KDOS-Light icon themes: the KDOS marks over Breeze, following the accent.

Sources

None: the port builds from its own directory, /kdos/src/art/kdos-icons.

Dependencies

Depends on: nothing a recipe names.

Required by (4): kde-plasma, kdos-plasma-look, kdos-sddm-theme, kdos-welcome.

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/41_system/phase.env && kpkg install kdos-icons'

What kpkg does

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

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/kdos-icons
SRC=$SRC_ROOT/kdos-icons-20261028
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:

ICONS="$PKG/usr/share/icons"

for s in 16 22 24 32 48 64 128 256; do
	install -Dm644 "$PORT_SRC/marks/tux-$s.png" \
		"$ICONS/hicolor/${s}x${s}/apps/start-here-kdos.png"
	install -Dm644 "$PORT_SRC/marks/logo-$s.png" \
		"$ICONS/hicolor/${s}x${s}/apps/distributor-logo-kdos.png"
	install -Dm644 "$PORT_SRC/marks/logo-$s.png" \
		"$ICONS/hicolor/${s}x${s}/apps/kdos.png"
done

for theme in KDOS KDOS-Light; do
	install -d "$ICONS/$theme"
	cp -R "$PORT_SRC/themes/$theme/." "$ICONS/$theme/"
	chmod -R u=rwX,go=rX "$ICONS/$theme"
	for s in 16 22 24 32 48 64 128 256; do
		d="$ICONS/$theme/${s}x${s}/places"
		install -Dm644 "$PORT_SRC/marks/tux-$s.png" "$d/start-here-kde.png"
		for alias in start-here-kde-symbolic start-here-kde-plasma \
			     start-here-kde-plasma-symbolic start-here-kdos; do
			ln -s start-here-kde.png "$d/$alias.png"
		done
	done
done

for pair in KDOS:breeze-dark KDOS-Light:breeze; do
	theme=${pair%%:*} base=${pair#*:}
	install -d "$ICONS/$theme/scalable/apps"
	ln -s "../../../$base/actions/22/internet-services.svg" "$ICONS/$theme/scalable/apps/im-google.svg"
	ln -s "../../../$base/apps/22/kgpg-symbolic.svg" "$ICONS/$theme/scalable/apps/kgpg.svg"
done

install -Dm644 "$PORT_SRC/themes/default/index.theme" "$ICONS/default/index.theme"

install -Dm644 "$PORT_SRC/licenses/LGPL-3.0.txt" "$PKG/usr/share/licenses/$name/LGPL-3.0.txt"
install -Dm644 "$PORT_SRC/licenses/GPL-3.0.txt" "$PKG/usr/share/licenses/$name/GPL-3.0.txt"

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/kdos-icons, 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 kdos-icons-20261028-1.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/kdos-icons, and runs the triggers its paths call for.

Other files in the port directory, read by build.sh: genmarks.py, genstatus.py, licenses/, marks/, themes/.

Contents

Installed directories: /usr/share/icons/KDOS, /usr/share/icons/KDOS-Light, /usr/share/icons/default, /usr/share/licenses/kdos-icons.

Notes

Both index.theme files set FollowsColorScheme=true, and that is what makes the accent reach the icons at all. KIconLoader recolours an SVG that carries a current-color-scheme stylesheet only when the TOP theme’s own index.theme asks for it; an inherited Breeze icon follows the colour scheme through KDOS only because KDOS says so. GTK, libadwaita and other non-KDE toolkits do no such recolouring and draw those icons in their baked-in Breeze blue.

The size keys (DesktopDefault, PanelSizes and the rest) repeat Breeze’s. KIconTheme reads them from the top theme and falls back to its own built-in sizes, not to an inherited theme’s, so a theme without them draws desktop and panel icons smaller than Breeze would.

The theme inherits Breeze but does not name breeze-icons in depends: that port is in 43_toolkits and this one in 41_system, and a 41 port’s closure must not reach a toolkit. The kde-plasma meta port installs Breeze on every image that has a desktop.

The marks in marks/ are cut from the master artwork, kdos.png at the top of the tree, by genmarks.py on a development host (it needs Pillow); the build only copies the PNGs it committed. They are raster, so they are the one part of these themes that does not follow the accent.

This port installs before gtk3, so it has no icon-theme.cache until gtk3 installs gtk-update-icon-cache, and that install writes one for every theme then present; see Shared indexes.

Breeze draws its status, emblem and package marks (data-information, data-success, emblem-*, vcs-*, package-* and the rest, with their dialog-* aliases) as a shape in ColorScheme-Accent, -Highlight, -PositiveText, -NeutralText or -NegativeText under a glyph fixed #fff. Every dark KDOS accent makes those shape colours light, and the glyph disappears. themes/KDOS/ therefore carries a copy of each, made by genstatus.py on a development host from an installed Breeze Dark (--src /usr/share/icons/breeze-dark --out themes/KDOS): the opaque white glyph becomes ColorScheme-Background on a positive, neutral or negative shape and ColorScheme-HighlightedText on an accent or highlight one, the two colours those shapes are solved against. The aliases Breeze links to a copied icon are linked beside it, a lookup by alias otherwise reaching the white original, and so are the @2x and @3x directories. The script rewrites the end of themes/KDOS/index.theme below its marker line. The copies are Breeze’s artwork, which is why the recipe’s licence names LGPL-3.0-or-later beside MIT; a Breeze release that redraws those icons is shown in its older drawing until the script is run again. KDOS-Light needs none: paper’s accent and status colours are dark, and the white glyph holds on them.

Breeze’s own licence file is in breeze-icons, which builds after this port, so the port carries the LGPL-3.0 and GPL-3.0 texts in licenses/ and the last lines of build.sh install them; a build outside a KDOS tree, such as plasmatest’s container, has no other copy to read. The MIT text is not copied: kpkg links usr/share/licenses/kdos-icons/LICENSE to KDOS’s own usr/share/licenses/kdos/LICENSE when it packages any source-less recipe whose licence names MIT.

KIconLoader tries a name and then its dash-stripped forms in each theme before it moves to the next, so a name a theme above hicolor answers in a shorter form never reaches hicolor: start-here-kdos would be answered by AdwaitaLegacy’s start-here, GNOME’s foot, under Adwaita, which is why both themes carry their own copy. genstatus.py for the same reason copies no name Breeze Dark draws in two contexts: checkmark is an action, the plain tick, and an emblem, the filled badge, and a copy of the emblem in KDOS would answer checkmark and checkmark-symbolic everywhere. For the same reason each Breeze Dark name that extends a copied one (printer-error-symbolic, emblem-important-symbolic, package-install-auto) is linked in KDOS to Breeze Dark’s own file; the copy of printer-error would otherwise answer it.

Adwaita comes after Breeze in both themes’ Inherits for the symbolic names only Adwaita draws, such as sidebar-show-right-symbolic, which GTK programs ask for; without it they draw the missing-image icon, and every KDE program logs Icon theme "Adwaita" not found. The recipe does not name adwaita-icon-theme in depends: this port builds in 41_system, and Adwaita’s gtk3 puts it in a later phase, so phaseclosure would refuse the edge. ports/base names adwaita-icon-theme instead, which is what puts it on every image beside these themes.