]> git.sur5r.net Git - i3/i3/commitdiff
Add support for bar_fg and bar_bg
authorAxel Wagner <mail@merovius.de>
Thu, 4 Nov 2010 12:46:50 +0000 (13:46 +0100)
committerAxel Wagner <mail@merovius.de>
Thu, 4 Nov 2010 12:46:50 +0000 (13:46 +0100)
i3bar/src/xcb.c

index bf679b5d5ae91db6e1fa56c2549310a71470d526..326ca2ad8dd2cc60407bf4d882762f252813f0ce 100644 (file)
@@ -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 */