From 02c3277356271bc9f2969cd56ee654e95ef9ce9e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 11:14:08 +0200 Subject: 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 --- rofi/udt/powermenu.rasi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'rofi/udt/powermenu.rasi') 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; -- cgit v1.2.3