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
parent 70e3173f99
commit d438bb01c2

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->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->height = text_height + padding * 2;