theme: add button padding and spacing (#2127)

While at it, separate corner width from button
width. Both are independed and having them
separately improves readability.
This commit is contained in:
Jens Peters 2024-09-09 17:43:38 +02:00 committed by Johan Malm
parent 8850368ab9
commit 824b0fa4e3
13 changed files with 105 additions and 39 deletions

View file

@ -205,6 +205,13 @@ ssd_get_margin(const struct ssd *ssd)
return ssd ? ssd->margin : (struct border){ 0 };
}
int
ssd_get_corner_width(void)
{
/* ensure a minimum corner width */
return MAX(rc.corner_radius, 5);
}
void
ssd_update_margin(struct ssd *ssd)
{