Fix colors in i3bar (Thanks julien)

i3bar previously used get_colorpixel on strings without the leading # (ff0000
instead of #ff0000). Since it uses libi3’s get_colorpixel now we needed to
update a few places.
This commit is contained in:
Michael Stapelberg
2011-10-23 17:48:44 +01:00
parent 91ae73b1f6
commit ada4857ad2
3 changed files with 16 additions and 16 deletions

View File

@ -294,16 +294,16 @@ void init_colors(const struct xcb_color_strings_t *new_colors) {
do { \
colors.name = get_colorpixel(new_colors->name ? new_colors->name : def); \
} while (0)
PARSE_COLOR(bar_fg, "FFFFFF");
PARSE_COLOR(bar_bg, "000000");
PARSE_COLOR(active_ws_fg, "888888");
PARSE_COLOR(active_ws_bg, "222222");
PARSE_COLOR(inactive_ws_fg, "888888");
PARSE_COLOR(inactive_ws_bg, "222222");
PARSE_COLOR(urgent_ws_fg, "FFFFFF");
PARSE_COLOR(urgent_ws_bg, "900000");
PARSE_COLOR(focus_ws_fg, "FFFFFF");
PARSE_COLOR(focus_ws_bg, "285577");
PARSE_COLOR(bar_fg, "#FFFFFF");
PARSE_COLOR(bar_bg, "#000000");
PARSE_COLOR(active_ws_fg, "#888888");
PARSE_COLOR(active_ws_bg, "#222222");
PARSE_COLOR(inactive_ws_fg, "#888888");
PARSE_COLOR(inactive_ws_bg, "#222222");
PARSE_COLOR(urgent_ws_fg, "#FFFFFF");
PARSE_COLOR(urgent_ws_bg, "#900000");
PARSE_COLOR(focus_ws_fg, "#FFFFFF");
PARSE_COLOR(focus_ws_bg, "#285577");
#undef PARSE_COLOR
}