diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-18 11:14:08 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-18 11:14:08 +0200 |
| commit | 02c3277356271bc9f2969cd56ee654e95ef9ce9e (patch) | |
| tree | 1ee3987fceae93e542d970f0e7e041f5dbdc9cca /rofi/udt/powermenu.rasi | |
| parent | 284709aefaed47b8d519ecf6c3dc79d1cd5cbbdf (diff) | |
| download | unified-desktop-theme-02c3277356271bc9f2969cd56ee654e95ef9ce9e.tar.gz unified-desktop-theme-02c3277356271bc9f2969cd56ee654e95ef9ce9e.zip | |
fix(rofi): compact confirm and screenshot cards, centre glyphs
The confirm and screenshot menus split the monitor into two half-screen
buttons with a glyph sized from the monitor height. They are now a fixed
368px card centred on the scrim, two 150px buttons at 72pt, so the
scripts no longer compute a glyph size.
Glyphs in all three menus sat right of centre: common.rasi's element
spacing still reserved a gap for the hidden icon. Elements now hold
element-text only. The power menu's greeting ignored horizontal-align,
so spacers either side centre it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'rofi/udt/powermenu.rasi')
| -rw-r--r-- | rofi/udt/powermenu.rasi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rofi/udt/powermenu.rasi b/rofi/udt/powermenu.rasi index 92c5b07..93a833e 100644 --- a/rofi/udt/powermenu.rasi +++ b/rofi/udt/powermenu.rasi @@ -66,11 +66,13 @@ inputbar { expand: false; background-color: transparent; padding: 0; - children: [ prompt ]; + children: [ dummy, prompt, dummy ]; } +/* prompt ignores horizontal-align and draws at its own width, so the + * spacers either side centre it. */ prompt { - expand: true; + expand: false; font: "Noto Sans Bold 28"; text-color: @text; horizontal-align: 0.5; @@ -86,7 +88,10 @@ listview { spacing: 24px; } +/* Text only: common.rasi's element spacing still reserves a gap for the + * icon, which pushed the glyph off centre. */ element { + children: [ element-text ]; padding: 24px 0px; border-radius: 12px; horizontal-align: 0.5; |
