Support icon colors

xbm/parse: support specifiying color when loading icon
theme.c: parse window.active.button.unpressed.image.color
This commit is contained in:
Johan Malm 2020-08-21 19:43:34 +01:00
parent 4f96230ebf
commit 5122a9be69
5 changed files with 22 additions and 10 deletions

View file

@ -16,6 +16,12 @@ struct pixmap {
int height;
};
/**
* parse_set_color - set color to be used when parsing icons
* @rgba: four floats representing red, green, blue, alpha
*/
void parse_set_color(float *rgba);
/**
* parse_xbm_tokens - parse xbm tokens and create pixmap
* @tokens: token vector