labnag: remove +1 offset from button Y-position calculation

It essentially removes an awkward top margin from the button on the main labnag bar.
This commit is contained in:
stormshadow 2026-04-24 05:42:11 +05:30 committed by Johan Malm
parent e61d58e54d
commit de3870246a

View file

@ -447,7 +447,7 @@ render_button(cairo_t *cairo, struct nag *nag, struct button *button,
} }
button->x = *x - border - text_width - padding * 2 + 1; button->x = *x - border - text_width - padding * 2 + 1;
button->y = (int)(ideal_height - text_height) / 2 - padding + 1; button->y = (int)(ideal_height - text_height) / 2 - padding;
button->width = text_width + padding * 2; button->width = text_width + padding * 2;
button->height = text_height + padding * 2; button->height = text_height + padding * 2;