theme: simplify loading of xbm buttons

No functional change.
This commit is contained in:
Johan Malm 2023-08-04 22:30:16 +01:00 committed by Johan Malm
parent 7a19184e5e
commit eca98a9b6e
5 changed files with 99 additions and 60 deletions

View file

@ -76,15 +76,15 @@ struct theme {
int osd_window_switcher_item_active_border_width;
/* textures */
struct lab_data_buffer *xbm_close_active_unpressed;
struct lab_data_buffer *xbm_maximize_active_unpressed;
struct lab_data_buffer *xbm_iconify_active_unpressed;
struct lab_data_buffer *xbm_menu_active_unpressed;
struct lab_data_buffer *button_close_active_unpressed;
struct lab_data_buffer *button_maximize_active_unpressed;
struct lab_data_buffer *button_iconify_active_unpressed;
struct lab_data_buffer *button_menu_active_unpressed;
struct lab_data_buffer *xbm_close_inactive_unpressed;
struct lab_data_buffer *xbm_maximize_inactive_unpressed;
struct lab_data_buffer *xbm_iconify_inactive_unpressed;
struct lab_data_buffer *xbm_menu_inactive_unpressed;
struct lab_data_buffer *button_close_inactive_unpressed;
struct lab_data_buffer *button_maximize_inactive_unpressed;
struct lab_data_buffer *button_iconify_inactive_unpressed;
struct lab_data_buffer *button_menu_inactive_unpressed;
struct lab_data_buffer *corner_top_left_active_normal;
struct lab_data_buffer *corner_top_right_active_normal;

View file

@ -9,6 +9,7 @@
/**
* xbm_load - load theme xbm files into global theme struct
*/
void xbm_load(struct theme *theme);
void xbm_load_button(const char *filename, struct lab_data_buffer **buffer,
char *fallback_button, float *rgba);
#endif /* LABWC_XBM_H */