diff options
| author | iamcheeseman <[hidden email]> | 2026-03-01 16:31:24 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-03-01 16:31:24 -0500 |
| commit | 5b52739d9e1740f102cea7895cf8e7e51d925573 (patch) | |
| tree | 5daebe1dc58cb53fe5066d1e6fde119cc1aa7e16 /src/tsar.c | |
| parent | 66625e33aa2a4b1eedb4e2a46d2092999d8d9da4 (diff) | |
Allow changing default colors
Diffstat (limited to 'src/tsar.c')
| -rw-r--r-- | src/tsar.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ Window win; GC gc; XftFont* font = NULL; -XftColor fg_color; +XftColor xft_fg_color; static int bar_width = 1000; static float width_ratio = 1; @@ -91,7 +91,7 @@ void init_x(void) { DefaultVisual(display, DefaultScreen(display)), DefaultColormap(display, DefaultScreen(display)), "#FFFFFF", - &fg_color + &xft_fg_color ); gc = XCreateGC(display, win, 0, NULL); @@ -115,7 +115,7 @@ void draw_text(const char* text, int x, int y) { ); int dy = y + (bar_height - font->height) / 2 + font->ascent; - XftDrawString8(xft_draw, &fg_color, font, x, dy, (const FcChar8*)text, strlen(text)); + XftDrawString8(xft_draw, &xft_fg_color, font, x, dy, (const FcChar8*)text, strlen(text)); XftDrawDestroy(xft_draw); } |
