mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:46:00 +01:00
Set recolor info initially
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
07005886f8
commit
a9f044c951
1 changed files with 6 additions and 0 deletions
|
@ -727,6 +727,12 @@ document_open(zathura_t* zathura, const char* path, const char* password,
|
||||||
g_free(recolor_dark);
|
g_free(recolor_dark);
|
||||||
g_free(recolor_light);
|
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 */
|
/* create blank pages */
|
||||||
zathura->pages = calloc(number_of_pages, sizeof(GtkWidget*));
|
zathura->pages = calloc(number_of_pages, sizeof(GtkWidget*));
|
||||||
if (zathura->pages == NULL) {
|
if (zathura->pages == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue