mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Pull menu bevels from theme
This commit is contained in:
parent
362c3e1b47
commit
e7b53c5d28
6 changed files with 78 additions and 25 deletions
|
|
@ -16,6 +16,11 @@ struct borderset * getBorders(uint32_t id, int size, enum border_type type, int
|
|||
type = BORDER_SINGLE;
|
||||
}
|
||||
|
||||
if (type == BORDER_DOUBLE_INSET && (bevelSize > size/2)) {
|
||||
type = BORDER_INSET;
|
||||
}
|
||||
|
||||
|
||||
// Anything with a size of 0 is converted to a 1-pixel flat border so as to prevent empty allocations
|
||||
|
||||
if (size < 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue