aboutsummaryrefslogtreecommitdiffstats
path: root/rofi/udt/powermenu.rasi
diff options
context:
space:
mode:
Diffstat (limited to 'rofi/udt/powermenu.rasi')
-rw-r--r--rofi/udt/powermenu.rasi9
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;