aboutsummaryrefslogtreecommitdiffstats
path: root/rofi
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-11 10:25:14 +0200
committerDanilo M. <danix@danix.xyz>2026-09-11 10:25:14 +0200
commit2eb4cb6183c1dfde8b36475422c5005a42cbc64c (patch)
treecd5e008764d5124a2c8be0d4b4403967ee7fa5fa /rofi
parent7aae84ab3859ba563057f14b42ed6c1b6772ec13 (diff)
downloadunified-desktop-theme-2eb4cb6183c1dfde8b36475422c5005a42cbc64c.tar.gz
unified-desktop-theme-2eb4cb6183c1dfde8b36475422c5005a42cbc64c.zip
feat: bring the power menu confirmation dialog into the theme
The yes/no gate in front of shutdown was still on the old adi1090x theme, so every shutdown showed a Macchiato power menu followed by a dialog that did not match it. Its glyphs now come from the theme's own Nerd Font rather than `feather`. That meant changing the codepoints the script sends, since the originals were Private Use Area points that only feather carries: they are now the Material circled check and close (U+F05E0, U+F0159), which Inconsolata Nerd Font Mono contains. Sized 42 to match the power menu, since the Material glyphs carry a lot of internal padding and render small. Worth knowing for future glyph choices: ClearlyU is installed and claims large parts of the Private Use Area, so it can win fontconfig's fallback and draw a blank where another font actually has the glyph. The U+F0xxx Nerd Font ranges avoid that. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6aeE37K4GHBsaM51yLTTq
Diffstat (limited to 'rofi')
-rw-r--r--rofi/udt/confirm.rasi61
1 files changed, 61 insertions, 0 deletions
diff --git a/rofi/udt/confirm.rasi b/rofi/udt/confirm.rasi
new file mode 100644
index 0000000..ddb12ca
--- /dev/null
+++ b/rofi/udt/confirm.rasi
@@ -0,0 +1,61 @@
+/*
+ * udt confirm layout: the yes/no gate in front of a destructive action.
+ * 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.
+ */
+
+@import "common.rasi"
+
+window {
+ width: 500px;
+ anchor: center;
+ location: center;
+ padding: 0;
+}
+
+mainbox {
+ children: [ message, listview ];
+ spacing: 0;
+ padding: 0;
+}
+
+/* The question, "Simu Sicuri?", passed by the script with -mesg. */
+message {
+ background-color: @surface0;
+ border-radius: 0;
+ padding: 28px 20px;
+}
+
+textbox {
+ font: "Noto Sans 14";
+ 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;
+}