aboutsummaryrefslogtreecommitdiffstats
path: root/build
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 /build
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 'build')
-rwxr-xr-xbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index 4a6c1d0..5e14ce0 100755
--- a/build
+++ b/build
@@ -147,6 +147,10 @@ def assemble(stage, text, c, wallpaper, fonts):
"select_w.png": (4, 1, (*c["accent"], 255)),
"select_c.png": (1, 1, (*c["surface"], 255)),
"select_e.png": (8, 1, (*c["surface"], 255)),
+ # The countdown bar: see theme.txt.in for why the top slice is clear.
+ "bar_n.png": (1, 24, (0, 0, 0, 0)),
+ "bar_c.png": (1, 1, (*c["surface"], 255)),
+ "hl_c.png": (1, 1, (*c["accent"], 255)),
}
for s in ("nw", "n", "ne", "w", "c", "e", "sw", "s", "se"):
slices[f"terminal_box_{s}.png"] = (1, 1, (*c["bg_deep"], 255))