From a9f044c951424bc50fb56d47436e1525d0358595 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 30 Aug 2013 18:55:42 +0200 Subject: [PATCH] Set recolor info initially Signed-off-by: Sebastian Ramacher --- zathura.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zathura.c b/zathura.c index 19d4a20..eb5635f 100644 --- a/zathura.c +++ b/zathura.c @@ -727,6 +727,12 @@ document_open(zathura_t* zathura, const char* path, const char* password, g_free(recolor_dark); g_free(recolor_light); + bool recolor = false; + girara_setting_get(zathura->ui.session, "recolor", &recolor); + zathura_renderer_enable_recolor(zathura->sync.render_thread, recolor); + girara_setting_get(zathura->ui.session, "recolor-keephue", &recolor); + zathura_renderer_enable_recolor_hue(zathura->sync.render_thread, recolor); + /* create blank pages */ zathura->pages = calloc(number_of_pages, sizeof(GtkWidget*)); if (zathura->pages == NULL) {