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/confirm.rasi | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'rofi/udt/confirm.rasi') diff --git a/rofi/udt/confirm.rasi b/rofi/udt/confirm.rasi index 1b288ee..242c86a 100644 --- a/rofi/udt/confirm.rasi +++ b/rofi/udt/confirm.rasi @@ -3,16 +3,14 @@ * Copyright (C) 2026 Danilo M. * Licensed under the GNU General Public License v2 only. * - * Used by the power menu's confirmation step. The screenshot menu's layout, - * two half-monitor buttons on the scrim, with the question above them. The - * glyph size comes from the script with -theme-str, as it does there. + * Used by the power menu's confirmation step. The screenshot menu's card, + * with the question above the two buttons. */ @import "screenshot.rasi" -mainbox { - children: [ dummy, message, listview, dummy ]; - spacing: 48px; +card { + children: [ message, listview ]; } /* The question, "Simu Sicuri?", passed by the script with -mesg. */ @@ -23,7 +21,7 @@ message { } textbox { - font: "Noto Sans Bold 28"; + font: "Noto Sans Bold 18"; text-color: @text; horizontal-align: 0.5; } -- cgit v1.2.3