theme: add theme_finish()

This commit is contained in:
Johan Malm 2021-02-21 22:03:14 +00:00
parent 9f61a819fc
commit cb2a504440
4 changed files with 23 additions and 2 deletions

View file

@ -42,7 +42,7 @@ void parse_hexstr(const char *hex, float *rgba);
/**
* theme_init - read openbox theme and generate button textures
* @theme: global theme struct
* @theme: theme data
* @renderer: wlr_renderer for creating button textures
* @theme_name: theme-name in <theme-dir>/<theme-name>/openbox-3/themerc
* Note <theme-dir> is obtained in theme-dir.c
@ -50,6 +50,12 @@ void parse_hexstr(const char *hex, float *rgba);
void theme_init(struct theme *theme, struct wlr_renderer *renderer,
const char *theme_name);
/**
* theme_finish - free button textures
* @theme: theme data
*/
void theme_finish(struct theme *theme);
/**
* theme_builin - apply built-in theme similar to Clearlooks
* Note: Only used if no theme can be found. Default values for individual