feat(themes): add Boreal + make theme appearance per-theme
All checks were successful
Check / eval (push) Successful in 3m1s
All checks were successful
Check / eval (push) Successful in 3m1s
Boreal — a Nord × Everforest × Dracula dark theme: a boreal forest at night under the aurora. Nord's frost bones, Everforest's comfort, Dracula's jewel-tone violet/cyan as the aurora light. Palette (WCAG-checked, all 24 themes × 7 pairings pass): frost-slate base, soft-vivid violet accent (#B79BE8, 6.35 on base) + frost-cyan accentAlt (#86C7C0, 7.84 AAA), sage-green/gold/coral semantics, text 10.66 AAA. Bespoke, non-standard surfaces: - Waybar whole-swap (jsonc + css): a floating "aurora frost" bar of three frosted-glass pills; launcher+clock left, workspaces centre, and the whole right side is ONE continuous pill — the system tray shares its glass with the status modules, no separators (the seamless-tray requirement). Full module set (parity). GeistMono. - Rofi: a frosted list base (used by every menu), plus a 4×3 large-icon grid for the app launcher only. - Typography GeistMono Nerd Font (57 MB, new); Iosevka was rejected at 1.1 GB. Per-theme appearance (new): a preset now carries a full fonts+ui block, like border, so a theme can ship a bespoke font / terminal opacity / border thickness / rounding and a switch always replaces it — no leak into the next theme (verified: boreal→everforest resets mono/rounding/opacity). All 23 other presets get the current defaults (idempotent — zero visual change). Boreal runs GeistMono + 0.90 terminal opacity + 3px borders + 12px rounding. Grid launcher (new, backward-compatible): drun renders via `-theme launcher`; HM writes ~/.local/share/rofi/themes/launcher.rasi which defaults to `@import "custom.rasi"` (every other theme's launcher = its list, unchanged), and a theme may override it (Boreal's grid). Text menus keep the base list. Wallpaper: an original procedurally-generated aurora-over-treeline (ImageMagick), palette-matched. V1: nix flake check --no-build green; strict JSON on every preset; contrast checker green; the real rofi binary parses the base rasi and resolves `-theme launcher` + @import + grid overlay; end-to-end eval with boreal active resolves the waybar whole-swap (tray in the right cluster), the rofi grid launcher, and the bespoke fonts/opacity/geometry reaching nomarchy.theme, with no cross-theme contamination. NOT done: on-screen render of the desktop (V2/V3) and preview.png (deferred to on-hardware capture). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,15 @@ let
|
||||
rasiOverride = cfg.themesDir + "/${t.slug}/rofi.rasi";
|
||||
hasRasiOverride = builtins.pathExists rasiOverride;
|
||||
|
||||
# App-launcher theme (SUPER+Space/D → `rofi -show drun -theme launcher`).
|
||||
# Kept separate from the base theme so a theme can give the launcher its
|
||||
# own layout (e.g. Boreal's icon grid) WITHOUT that layout leaking into
|
||||
# the text menus, which share the base theme and need a list. The default
|
||||
# just re-imports the active theme (custom.rasi, written by HM to the same
|
||||
# themes dir), so every other theme's launcher is byte-for-byte its list.
|
||||
launcherOverride = cfg.themesDir + "/${t.slug}/launcher.rasi";
|
||||
hasLauncherOverride = builtins.pathExists launcherOverride;
|
||||
|
||||
# ── Visual theme picker ──────────────────────────────────────────────
|
||||
# Every preset (themes/<slug>.json) is read at eval time to build a grid
|
||||
# of real desktop previews. Grouped dark-first then light — the previews
|
||||
@@ -846,6 +855,14 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
# The launcher theme lives beside HM's generated theme
|
||||
# (~/.local/share/rofi/themes/custom.rasi), so `@import "custom.rasi"`
|
||||
# in the default resolves to the active theme.
|
||||
xdg.dataFile."rofi/themes/launcher.rasi".text =
|
||||
if hasLauncherOverride
|
||||
then builtins.readFile launcherOverride
|
||||
else ''@import "custom.rasi"'';
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
terminal = cfg.terminal;
|
||||
|
||||
Reference in New Issue
Block a user