labwc/src/ssd
John Lindgren db3aab77fe ssd: limit icon size to ~85% of window_button_width
This ensures that the icon doesn't push right up to the window edge
(or left-aligned title) when using a large font or narrow button width.
In the default config (with 10pt font), it makes no difference since
the limiting factor on the icon size is the titlebar height anyway.

I spent way too much time over-thinking how to compute the padding.
I think 2px on each side is reasonable (and it should be equal on each
side), so window_button_width/10 (rounded down) should be fine.
Eventually the padding should probably be configurable anyway.
2024-10-03 21:17:21 +01:00
..
meson.build Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
resize-indicator.c Implement <resize><drawContents> 2024-06-15 21:17:01 +01:00
ssd-border.c theme: add button padding and spacing (#2127) 2024-09-10 22:14:30 +01:00
ssd-extents.c theme: add button padding and spacing (#2127) 2024-09-10 22:14:30 +01:00
ssd-part.c ssd: support window icons 2024-09-25 18:04:09 +09:00
ssd-shadow.c ssd/ssd-shadow.c: fix memory leak 2024-07-02 20:34:25 +01:00
ssd-titlebar.c ssd: limit icon size to ~85% of window_button_width 2024-10-03 21:17:21 +01:00
ssd.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00