aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorGuilherme Freire <41879254+GRFreire@users.noreply.github.com>2021-09-11 16:38:22 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 21:55:31 +0200
commitf7557c55b5a87a51daba825ed3f6155eed179221 (patch)
treeeaedd0717e558730b62015740a088ae2ce3e6706 /image.c
parentd8ec6f91a9857fb651f39de7929f17543d1c996c (diff)
downloadnsxiv-f7557c55b5a87a51daba825ed3f6155eed179221.tar.zst
Custom bar colors (#10)
* set bar and text colors independently * change xresources to Program.class.resource * rename color variables to win/bar_bg/fg * change default bar colors to match window colors
Diffstat (limited to 'image.c')
-rw-r--r--image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.c b/image.c
index 2c6852f..9d76d46 100644
--- a/image.c
+++ b/image.c
@@ -500,7 +500,7 @@ void img_render(img_t *img)
}
imlib_image_put_back_data(data);
} else {
- c = win->bg.pixel;
+ c = win->win_bg.pixel;
imlib_context_set_color(c >> 16 & 0xFF, c >> 8 & 0xFF, c & 0xFF, 0xFF);
imlib_image_fill_rectangle(0, 0, dw, dh);
}