common/graphic-helpers: adopt lookup_named_color from xpm parser

This commit is contained in:
John Lindgren 2025-04-22 11:47:38 -04:00
parent 30248e1ba3
commit c4bae87c04
6 changed files with 33 additions and 29 deletions

View file

@ -15,6 +15,7 @@ void set_cairo_color(cairo_t *cairo, const float *color);
/* Draws a border with a specified line width */
void draw_cairo_border(cairo_t *cairo, struct wlr_fbox fbox, double line_width);
struct lab_data_buffer;
/* Converts X11 color name to ARGB32 (with alpha = 255) */
bool lookup_named_color(const char *name, uint32_t *argb);
#endif /* LABWC_GRAPHIC_HELPERS_H */