From da344ac8b96cb28a7e777c607ca79d78a4963125 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Mon, 25 Oct 2010 14:09:14 +0200 Subject: [PATCH] Color window and viewport Thanks to Strom --- config.def.h | 2 +- zathura.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 74ca395..5000aa9 100644 --- a/config.def.h +++ b/config.def.h @@ -139,7 +139,7 @@ Shortcut shortcuts[] = { {GDK_CONTROL_MASK, GDK_f, sc_scroll, NORMAL, { FULL_DOWN } }, {GDK_CONTROL_MASK, GDK_b, sc_scroll, NORMAL, { FULL_UP } }, {0, GDK_space, sc_scroll, NORMAL, { FULL_DOWN } }, - {0, GDK_O, sc_switch_goto_mode, NORMAL, {0} }, + {0, GDK_0, sc_switch_goto_mode, NORMAL, {0} }, {0, GDK_F5, sc_toggle_fullscreen, NORMAL | FULLSCREEN, {0} }, {0, GDK_Tab, sc_toggle_index, NORMAL | INDEX, {0} }, {GDK_CONTROL_MASK, GDK_m, sc_toggle_inputbar, NORMAL, {0} }, diff --git a/zathura.c b/zathura.c index 58213b5..600ea23 100644 --- a/zathura.c +++ b/zathura.c @@ -496,8 +496,13 @@ init_look(void) gdk_color_parse(recolor_lightcolor, &(Zathura.Style.recolor_lightcolor)); gdk_color_parse(search_highlight, &(Zathura.Style.search_highlight)); gdk_color_parse(select_text, &(Zathura.Style.select_text)); + Zathura.Style.font = pango_font_description_from_string(font); + /* window and viewport */ + gtk_widget_modify_bg(GTK_WIDGET(Zathura.UI.window), GTK_STATE_NORMAL, &(Zathura.Style.default_bg)); + gtk_widget_modify_bg(GTK_WIDGET(Zathura.UI.viewport), GTK_STATE_NORMAL, &(Zathura.Style.default_bg)); + /* drawing area */ gtk_widget_modify_bg(GTK_WIDGET(Zathura.UI.drawing_area), GTK_STATE_NORMAL, &(Zathura.Style.default_bg));