Theming: COSMIC apps, icons and cursor, Flatpak, console and UEFI menu
KrissOS: a Linux distribution by Kraze Tech, proudly Malaysian
Brought to you by:
krazetech
Originally created by: idiazraz
Closes the theming gaps a new user sees on the KrissOS Shell desktop. Every colour still comes from theme/tokens.json.
shell/cosmic/ now mirrors ~/.config/cosmic. The dark and light theme builder keys (accent, window background, light card colour, corner radii, focus ring) are token templates. At package build time, shell/cosmic-theme/ (a ~40-line Rust helper pinned to libcosmic) runs COSMIC's own ThemeBuilder::build() on them, so every derived colour (hover, pressed, dividers, text on accent) is exactly what COSMIC Settings would compute. The session seeds every key the user has not set, so their changes win. It also seeds a COSMIC Terminal scheme for each mode (KrissOS / KrissOS Light) and Papirus as the COSMIC icon theme (CosmicTk).vimix-cursors, Arch extra; Bibata is AUR-only). It is set through ~/.icons/default so cosmic-comp, GTK, Qt and X11 apps all pick it up, and the greeter uses it too. GTK settings, gsettings and kcminputrc follow the token as before./var/lib/flatpak/overrides/global exposes ~/.config/gtk-3.0 and gtk-4.0 read-only. The skel gtk.css now holds the rendered colours rather than an @import of /usr/share, which sandboxes cannot see. With gtk-theme=adw-gtk3-dark in gsettings, Flatpak installs the matching org.gtk.Gtk3theme from Flathub by itself.kriss-settings dependency) with /etc/xdg/fastfetch/config.jsonc and the emblem rasterised from krissos.svg in the accent..bashrc with a simple accent prompt./etc/issue showing "KrissOS on ttyN" in the accent and setting the Linux console palette to the 16 token colours.kriss-branding.hook) installs them, following the existing os-release hook.generate.py gains {{token.ansi}} (38;2;r;g;b). kriss-shell 0.2.4 builds with cargo, and iso/build.sh installs rust for it. kriss-theme and kriss-settings are now 0.3.1.| COSMIC Files, dark | COSMIC Files, light |
|---|---|
![]() |
![]() |
| COSMIC Terminal + fastfetch | Desktop |
|---|---|
The images live on the kz/theming-screenshots branch. It holds only the images, is not for merging, and can be deleted after review. The UEFI menu shot comes from this PR's boot-test artifact (uefi-menu.png).
iso/build.sh in the same archlinux container CI uses. The kriss-cosmic-theme compile adds about 35 s.~/.config/cosmic is seeded with the Theme, Builder, Term, Tk and Shortcuts configs.light_bg, a white sidebar card and the accent.#0B0D0F, cursor #24B1E6, and the ANSI cyan block in the accent rather than COSMIC's #49BAC8./etc/issue renders "KrissOS on ttyS0" with the palette sequences.~/.icons/default inherits Vimix-white-cursors.adw-gtk3-dark / Papirus-Dark. The font is unchanged.generate.py --test passes, sh -n and shellcheck pass on kriss-shell, and the Rust helper builds with --locked.cosmic-settings-daemon now runs in the session, so COSMIC apps and COSMIC Terminal follow light/dark live. I checked this on the live ISO by flipping the mode with Files and Terminal open. On start the daemon copies the CosmicTk fonts into gsettings. The KrissOS fonts are seeded there, so the families stay Figtree and JetBrains Mono. An upstream parse bug (it reads the size with the closing quote still attached) resets the size to COSMIC's 10.5 pt. GTK theme switching stays off (apply_theme_global is false), so our gtk.css and qt6ct files are left alone.gtk.css only carries the dark colours (as before), so GTK and Flatpak apps stay dark-coloured in light mode.papirus-folders is AUR-only.