aboutsummaryrefslogtreecommitdiffstats
path: root/theme.txt.in
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 10:33:26 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 10:33:26 +0200
commita08ffb69ac7553350e1e5259bb0101ea997a70ae (patch)
tree295de32eaf5c24b576c822751e394d14ba7d1acd /theme.txt.in
parent27c22afb02a819c8d9e28c9232e515716e92f263 (diff)
downloadgrub-theme-udt-a08ffb69ac7553350e1e5259bb0101ea997a70ae.tar.gz
grub-theme-udt-a08ffb69ac7553350e1e5259bb0101ea997a70ae.zip
Thin the countdown bar to 4px
GRUB 2.14 draws the progress bar at least 28px tall regardless of its height property (measured with ./preview; not explained by the font or the minimal-size code in the source). Keep the component at 28px and draw it with pixmap styles whose top slice is a 24px transparent strip, leaving a 4px surface track filled with accent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'theme.txt.in')
-rw-r--r--theme.txt.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/theme.txt.in b/theme.txt.in
index b864a86..173077d 100644
--- a/theme.txt.in
+++ b/theme.txt.in
@@ -56,15 +56,18 @@ terminal-border: "0"
color = "@FG_FAINT@"
}
+# GRUB 2.14 will not draw this bar under 28px tall, whatever height says
+# (measured in ./preview). So it is 28px with a 24px transparent top slice
+# in bar_n.png, leaving a 4px track: surface (bar_c), filled with accent
+# (hl_c). Change the height and bar_n.png together.
+ progress_bar {
id = "__timeout__"
left = 3%
- top = 87%
+ top = 85%
width = 19%
- height = 4
- fg_color = "@ACCENT@"
- bg_color = "@SURFACE@"
- border_color = "@SURFACE@"
+ height = 28
+ bar_style = "bar_*.png"
+ highlight_style = "hl_*.png"
}
# The panel: bg_alt at ~85% alpha, stretched over the left quarter. Last on