feat(themes): port legacy rofi identities for summer-day/night

themes/<slug>/rofi.rasi whole-swaps for the two themes that had a
distinct launcher look in the legacy branch — inverted window (bg=fg),
green inputbar, yellow bottom-border accent, rounded. Adapted: dropped
the configuration{} block (rofi.nix owns modi/terminal/show-icons) and
swapped the unshipped Iosevka 17 for a shipped Nerd Font.

Verified: both .rasi parse under `rofi -dump-theme`; the whole-swap
selects per active theme (summer-night → #2d353b/#a7c080, summer-day →
#fdf6e3, others → the generated palette theme); flake check green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Bernardo Magri
2026-06-13 15:45:39 +01:00
parent 961314ea86
commit abfe872109
3 changed files with 266 additions and 4 deletions

View File

@@ -288,10 +288,10 @@ close · `SUPER+1..9` workspaces · `Print` region screenshot.
palette recolors and already match. Remaining: a visual pass over all
six on the live ISO
- **Per-theme rofi identity:** the `themes/<slug>/rofi.rasi` whole-swap
mechanism ships; what remains is porting the legacy `rofi.rasi` designs
(summer-day/night already have them in the legacy branch) for the
identity themes — rofi's `.rasi` expresses their per-element looks
(green inputbar, inverted window) directly, unlike the old flat scheme
ships, and summer-day/night carry their legacy designs (inverted window,
green inputbar, yellow bottom-border). Remaining: author `.rasi`
identities for the other four ported themes if/when they want one (the
generated palette theme is the default and looks fine)
- **Faster switches:** move `backgrounds/` out of the flake source (the 86 MB
re-copy on every state write is the main eval tax), then pre-built theme
variants if still needed

131
themes/summer-day/rofi.rasi Normal file
View File

@@ -0,0 +1,131 @@
/**
* Nomarchy Summer Day — rofi whole-swap (themes/<slug>/rofi.rasi).
* Ported from the legacy branch. The `configuration {}` block is omitted
* on purpose: modi/terminal/show-icons come from modules/home/rofi.nix.
* Iosevka 17 → a shipped Nerd Font.
*/
* {
bg0: #fdf6e3;
fg: #5c6a72;
red: #f85552;
yellow: #dfa000;
green: #8da101;
aqua: #35a77c;
blue: #3a94c5;
purple: #df69ba;
grey0: #a6b0a0;
font: "JetBrainsMono Nerd Font 14";
background-color: transparent;
text-color: @fg;
}
window {
transparency: "real";
background-color: @fg;
text-color: @bg0;
border-bottom: 5px;
border-color: @yellow;
border-radius: 15px;
width: 40%;
height: 50%;
location: center;
anchor: center;
x-offset: 0;
y-offset: 0;
}
mainbox {
background-color: transparent;
children: [ inputbar, listview ];
spacing: 0px;
padding: 0px;
}
inputbar {
children: [ prompt, entry ];
background-color: @green;
text-color: @bg0;
expand: false;
border-bottom: 5px;
border-color: @grey0;
border-radius: 10px;
margin: 15px;
padding: 10px;
spacing: 15px;
}
prompt {
enabled: true;
background-color: inherit;
text-color: inherit;
}
entry {
background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "Type to search...";
placeholder-color: @bg0;
}
listview {
background-color: transparent;
columns: 1;
lines: 8;
spacing: 0px;
cycle: true;
dynamic: true;
layout: vertical;
padding: 20px;
}
element {
background-color: transparent;
text-color: @bg0;
orientation: horizontal;
border-radius: 10px;
padding: 10px;
spacing: 15px;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 40px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
highlight: bold;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
element selected {
background-color: @bg0;
text-color: @fg;
border-bottom: 5px;
border-color: #bdc3af;
border-radius: 10px;
}
element-text selected {
text-color: @fg;
}
element-icon selected {
text-color: @fg;
}
scrollbar {
width: 0px;
background-color: transparent;
handle-width: 0px;
handle-color: transparent;
border: 0px;
}

View File

@@ -0,0 +1,131 @@
/**
* Nomarchy Summer Night — rofi whole-swap (themes/<slug>/rofi.rasi).
* Ported from the legacy branch. The `configuration {}` block is omitted
* on purpose: modi/terminal/show-icons come from modules/home/rofi.nix.
* Iosevka 17 → a shipped Nerd Font.
*/
* {
bg0: #2d353b;
fg: #d3c6aa;
red: #e68183;
yellow: #d9bb80;
green: #a7c080;
aqua: #83b6af;
blue: #83b6af;
purple: #d39bb6;
grey0: #868d80;
font: "JetBrainsMono Nerd Font 14";
background-color: transparent;
text-color: @fg;
}
window {
transparency: "real";
background-color: @fg;
text-color: @bg0;
border-bottom: 5px;
border-color: @yellow;
border-radius: 15px;
width: 40%;
height: 50%;
location: center;
anchor: center;
x-offset: 0;
y-offset: 0;
}
mainbox {
background-color: transparent;
children: [ inputbar, listview ];
spacing: 0px;
padding: 0px;
}
inputbar {
children: [ prompt, entry ];
background-color: @green;
text-color: @bg0;
expand: false;
border-bottom: 5px;
border-color: @grey0;
border-radius: 10px;
margin: 15px;
padding: 10px;
spacing: 15px;
}
prompt {
enabled: true;
background-color: inherit;
text-color: inherit;
}
entry {
background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "Type to search...";
placeholder-color: @bg0;
}
listview {
background-color: transparent;
columns: 1;
lines: 8;
spacing: 0px;
cycle: true;
dynamic: true;
layout: vertical;
padding: 20px;
}
element {
background-color: transparent;
text-color: @bg0;
orientation: horizontal;
border-radius: 10px;
padding: 10px;
spacing: 15px;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 40px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
highlight: bold;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
element selected {
background-color: @bg0;
text-color: @fg;
border-bottom: 5px;
border-color: #161a1d;
border-radius: 10px;
}
element-text selected {
text-color: @fg;
}
element-icon selected {
text-color: @fg;
}
scrollbar {
width: 0px;
background-color: transparent;
handle-width: 0px;
handle-color: transparent;
border: 0px;
}