All checks were successful
Check / eval (push) Successful in 3m49s
Bernardo saw Recovery ellipsize on a 2560x1440 external, which falsified the item's model (40% + Inter 11 → "only below 1920"). Real cause: text menus render through themes/<slug>/rofi.rasi, where boreal + neon-glass pinned width: 620px (fixed — a wide panel buys nothing) while seven used 40%, and the font is whatever that file says — mostly monospace, far wider than the Inter that was measured. The modelled combination ships in no theme. The insight: a menu must fit its longest label, which is a count of characters in the THEME's font — so the window must scale with the font, not the screen. 40% gives a 1366 panel 546px and a 2560 one 1024px for the same row, and a 14pt mono theme needs ~25% more room than an 11pt one on both; a percentage cannot see either fact. Rofi has the right unit (`ch` = width of one digit in the current font) and `calc( a min b )` to cap it, so every text menu — generated and all nine whole-swaps — is now `width: calc( 84ch min 65% )`. 84ch fits the longest row we ship (69 chars) plus icon and padding; the cap is Bernardo's condition (never sprawl on a low-res panel) and it is measured, not assumed. Verified on hardware, not by arithmetic: 84ch = 756px in GeistMono 11 and 924px in JetBrainsMono 14; `calc( 84ch min 300px )` → 300px, so the clamp really clamps. Screenshots at both ends — the real Recovery menu at 756px (29% of 2560) with every label complete, and the Acer worst case reproduced pixel-exactly (888px = 65% of 1366, JetBrainsMono 14) also complete. Grid views override width per-invocation and are untouched. checks.rofi-text-width guards the class, proven by pinning boreal back to 620px and watching it fail by name. Acer V3 queued for its own fontconfig. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
141 lines
2.8 KiB
Plaintext
141 lines
2.8 KiB
Plaintext
/**
|
|
* 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: calc( 84ch min 65% );
|
|
/* No fixed height — size to content (fixed-num-lines:false) so every
|
|
* entry shows without scrolling and there's no empty space below. */
|
|
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...";
|
|
/* dimmed vs the prompt (item 28c) — bg0 at ~60% over the green */
|
|
placeholder-color: #fdf6e399;
|
|
}
|
|
|
|
listview {
|
|
scrollbar: true;
|
|
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;
|
|
}
|
|
|
|
/* Zebra striping: every other row lifts with a faint light wash over the
|
|
* dark window (bg0 at ~12% alpha). The selected row below still wins. */
|
|
element alternate.normal {
|
|
background-color: #fdf6e31f;
|
|
}
|
|
|
|
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: 4px;
|
|
handle-width: 4px;
|
|
handle-color: @yellow;
|
|
background-color: @bg0;
|
|
border: 0px;
|
|
}
|