Menu ▾ ▴

#29 Theming: COSMIC apps, icons and cursor, Flatpak, console and UEFI menu

open
nobody
None
2026-11-16
2026-11-16
Anonymous
No

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.

What changed

  • COSMIC apps (Files, Terminal, Settings). 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).
  • Icons and cursor. Papirus-Dark (already a dependency) is now also the COSMIC default. The cursor moves from Adwaita to Vimix white (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.
  • Flatpak. /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.
  • ISO UEFI menu. The entries are now "KrissOS (live)", "Install KrissOS" and "Memory test (Memtest86+)". The timeout drops to 5 s and the live entry stays the default. File names are unchanged, so the boot and install tests still find them.
  • Terminal touches.
  • fastfetch (a new kriss-settings dependency) with /etc/xdg/fastfetch/config.jsonc and the emblem rasterised from krissos.svg in the accent.
  • A skel .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.
  • Both files belong to other packages (bash, filesystem), so a pacman hook (kriss-branding.hook) installs them, following the existing os-release hook.
  • Font. Unchanged (Noto; Figtree is still the open §11 decision). COSMIC Terminal keeps its default font.
  • 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.

Screenshots (this branch's ISO, QEMU on the test box)

COSMIC Files, dark COSMIC Files, light
files dark 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).

Verified

  • I built the full ISO from this branch with iso/build.sh in the same archlinux container CI uses. The kriss-cosmic-theme compile adds about 35 s.
  • Booted that ISO in QEMU/KVM (5 GB, live entry) and checked:
  • ~/.config/cosmic is seeded with the Theme, Builder, Term, Tk and Shortcuts configs.
  • COSMIC Files in dark mode uses the surface background, accent highlights and the 4 px ring.
  • COSMIC Files started in light mode uses light_bg, a white sidebar card and the accent.
  • COSMIC Terminal in dark mode uses the KrissOS scheme. Pixel checks show the background #0B0D0F, cursor #24B1E6, and the ANSI cyan block in the accent rather than COSMIC's #49BAC8.
  • fastfetch shows the emblem and keys in the accent.
  • The prompt is coloured. /etc/issue renders "KrissOS on ttyS0" with the palette sequences.
  • ~/.icons/default inherits Vimix-white-cursors.
  • gsettings reports 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.

Not verified / known gaps

  • gsettings font size is 10.5 pt, not 11. 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.
  • Flatpak apps. No Flatpak app was installed in the VM, so the override and the auto-installed adw-gtk3 extension were not seen working.
  • GTK light mode. gtk.css only carries the dark colours (as before), so GTK and Flatpak apps stay dark-coloured in light mode.
  • Papirus folder tint. Not done: papirus-folders is AUR-only.
  • Hardware and installs. The Linux console palette was seen on serial only, not on a real VT. The installed-system path (the hook on pacstrap) is covered by CI's install test, not by me.
2 Attachments

Related

Tickets: #30

Discussion


Log in to post a comment.