diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-27 18:45:31 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-27 18:45:31 +0200 |
| commit | 40678f063ac206f7135b2b41e936d6d8ce998f97 (patch) | |
| tree | af3e2e0815a3a0bbf2f10061caa95817c0535e05 /rofi | |
| parent | a6ce7e2a56b90e964e7d609baad6e56d6b35408e (diff) | |
| download | unified-desktop-theme-40678f063ac206f7135b2b41e936d6d8ce998f97.tar.gz unified-desktop-theme-40678f063ac206f7135b2b41e936d6d8ce998f97.zip | |
feat(rofi): fullscreen layout for the power menu's confirmation
The yes/no gate was a 500px box, small next to the fullscreen power
menu in front of it. confirm.rasi now imports the screenshot menu's
layout, two half-monitor buttons on the scrim, and adds the question
above them. The glyph size arrives from the calling script with
-theme-str, derived from the focused monitor, as it does there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'rofi')
| -rw-r--r-- | rofi/udt/confirm.rasi | 52 |
1 files changed, 10 insertions, 42 deletions
diff --git a/rofi/udt/confirm.rasi b/rofi/udt/confirm.rasi index ddb12ca..1b288ee 100644 --- a/rofi/udt/confirm.rasi +++ b/rofi/udt/confirm.rasi @@ -3,59 +3,27 @@ * Copyright (C) 2026 Danilo M. <danix@danix.xyz> * Licensed under the GNU General Public License v2 only. * - * Used by the power menu's confirmation step. Two options, no search: the - * whole point is a deliberate choice, so there is nothing to filter. + * 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. */ -@import "common.rasi" - -window { - width: 500px; - anchor: center; - location: center; - padding: 0; -} +@import "screenshot.rasi" mainbox { - children: [ message, listview ]; - spacing: 0; - padding: 0; + children: [ dummy, message, listview, dummy ]; + spacing: 48px; } /* The question, "Simu Sicuri?", passed by the script with -mesg. */ message { - background-color: @surface0; - border-radius: 0; - padding: 28px 20px; + expand: false; + background-color: transparent; + padding: 0; } textbox { - font: "Noto Sans 14"; + font: "Noto Sans Bold 28"; text-color: @text; horizontal-align: 0.5; - vertical-align: 0.5; -} - -/* Yes and no, side by side and equally weighted. */ -listview { - columns: 2; - lines: 1; - fixed-height: true; - fixed-columns: true; - spacing: 0; - padding: 0; -} - -element { - padding: 26px; - border-radius: 0; -} - -/* Glyphs come from the theme's own Nerd Font. The codepoints the script sends - * must therefore exist in it; see the powermenu script's `yes` and `no`. */ -element-text { - font: "Inconsolata Nerd Font Mono 42"; - horizontal-align: 0.5; - vertical-align: 0.5; - text-color: inherit; } |
