From: Axel Wagner Date: Thu, 4 Nov 2010 12:46:50 +0000 (+0100) Subject: Add support for bar_fg and bar_bg X-Git-Tag: 4.0.1~7^2~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23b62f621dc3f3ccfe57794f67fa16b530f3e694;p=i3%2Fi3 Add support for bar_fg and bar_bg --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index bf679b5d..326ca2ad 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -520,7 +520,7 @@ void init_xcb(char *fontname) { uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT; - uint32_t vals[3] = { xcb_screen->white_pixel, xcb_screen->black_pixel, xcb_font }; + uint32_t vals[3] = { colors.bar_fg, colors.bar_bg, xcb_font }; xcb_void_cookie_t sl_ctx_cookie = xcb_create_gc_checked(xcb_connection, statusline_ctx, @@ -652,7 +652,7 @@ void reconfig_windows() { walk->buffer = xcb_generate_id(xcb_connection); mask = XCB_CW_BACK_PIXEL | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK; /* Black background */ - values[0] = xcb_screen->black_pixel; + values[0] = colors.bar_bg; /* If hide_on_modifier is set, i3 is not supposed to manage our bar-windows */ values[1] = config.hide_on_modifier; /* The events we want to receive */