Hiroaki Yamamoto
d64e3915a3
Fix some header includes detected by clangd
...
There were some missing headers like <stddef.h> for `NULL`, <wayland-util.h>
for `wl_link` and <stdbool.h> for `true`/`false`.
Also this commit fixes that `labwc.h` and `ime.h` included each other.
2024-04-21 21:58:57 +02:00
Hiroaki Yamamoto
be37f9a564
Fix various typos across the codebase
2024-03-08 13:59:20 +01:00
Johan Malm
b7ee8b16f3
theme: move more button fallback logic to theme.c
...
...and simplify button_xbm_load() by splitting it into one function that
loads an xbm file and another that creates an icon from a builtin
bitmap.
2023-12-21 02:42:23 +01:00
John Lindgren
d207e97992
theme: use non-hover button variants as fallback
...
Some themes don't have hover variants for button pixmaps.
It looks better visually to use the non-hover variants as fallbacks
rather than the built-in 6x6 pixmaps.
2023-12-21 02:42:23 +01:00
Simon Long
c79b8ba8a7
Support hover icons in titlebar ( #1280 )
...
Allow both max_toggled_hover and max_hover_toggled names for icons
2023-12-06 20:33:26 +00:00
Johan Malm
c598cf7f11
button-png.c: s/png_load/button_png_load/
2023-09-17 19:26:41 +01:00
Johan Malm
c62df26c2a
Support svg buttons
...
In the theme directory add close-{active,inactive}.svg instead of
close.xbm - and similarly for iconify, menu and max.
2023-09-17 19:26:41 +01:00
Johan Malm
a8951c4b75
button/common.c: share button_filename() to reduce duplication
2023-09-17 19:26:41 +01:00
Johan Malm
2b9a6914a6
button: move button-png.c to button/
...
...so that all button code is in the same place.
2023-08-10 16:33:03 +01:00
Johan Malm
03bc2ada47
button: refactor xbm code
...
- Rename src/xbm/ to src/button/
- Combine xbm.c parse.c tokenize.c into button-xbm.c
No functional change
2023-08-10 16:33:03 +01:00