mirror of
https://github.com/labwc/labwc.git
synced 2025-11-07 13:30:06 -05:00
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:
parent
8850368ab9
commit
824b0fa4e3
13 changed files with 105 additions and 39 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue