From 5994a370b9279b53be82bc97965e4527d2a41f81 Mon Sep 17 00:00:00 2001 From: ne_mene Date: Sun, 1 Mar 2026 22:39:18 +0100 Subject: padding --- src/tsar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tsar.c') diff --git a/src/tsar.c b/src/tsar.c index 8cb69d9..9c6a87e 100644 --- a/src/tsar.c +++ b/src/tsar.c @@ -129,6 +129,8 @@ void draw_comp_set(float pos_ratio, comp_t **set, int size) { } int x = (bar_width - width) * pos_ratio; + x += padding * 2*(0.5 - pos_ratio); // Magic formula lol + int y = (bar_height - font->height) / 2; for (int i = 0; i < size; i++) { comp_t *comp = set[i]; -- cgit v1.3-2-g0d8e