Parse colors as color_t instead of colorpixel.
With this patch we remove the temporary draw_util_colorpixel_to_color function we introduced previously by parsing the colors as color_t to begin with. relates to #1278
This commit is contained in:
@ -50,10 +50,10 @@ struct context {
|
||||
*
|
||||
*/
|
||||
struct Colortriple {
|
||||
uint32_t border;
|
||||
uint32_t background;
|
||||
uint32_t text;
|
||||
uint32_t indicator;
|
||||
color_t border;
|
||||
color_t background;
|
||||
color_t text;
|
||||
color_t indicator;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -202,7 +202,7 @@ struct Config {
|
||||
|
||||
/* Color codes are stored here */
|
||||
struct config_client {
|
||||
uint32_t background;
|
||||
color_t background;
|
||||
struct Colortriple focused;
|
||||
struct Colortriple focused_inactive;
|
||||
struct Colortriple unfocused;
|
||||
|
@ -179,7 +179,7 @@ struct deco_render_params {
|
||||
struct width_height con_rect;
|
||||
struct width_height con_window_rect;
|
||||
Rect con_deco_rect;
|
||||
uint32_t background;
|
||||
color_t background;
|
||||
layout_t parent_layout;
|
||||
bool con_is_leaf;
|
||||
};
|
||||
|
@ -554,8 +554,6 @@ void draw_util_surface_free(xcb_connection_t *conn, surface_t *surface);
|
||||
*/
|
||||
color_t draw_util_hex_to_color(const char *color);
|
||||
|
||||
color_t draw_util_colorpixel_to_color(uint32_t colorpixel);
|
||||
|
||||
/**
|
||||
* Draw the given text using libi3.
|
||||
* This function also marks the surface dirty which is needed if other means of
|
||||
|
Reference in New Issue
Block a user