Commit dbc67b85 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

ev-view: Fix the Eview background color and page borders and shadow

Latest changes in Adwaita broke it, so define the EvView background
color in our css to use the theme background color instead of the theme
base color.
parent 36d7e9ec
......@@ -143,17 +143,10 @@ ev_document_misc_paint_one_page (cairo_t *cr,
GtkStyleContext *context = gtk_widget_get_style_context (widget);
GtkStateFlags state = gtk_widget_get_state_flags (widget);
GdkRGBA fg, bg, shade_bg;
GtkSymbolicColor *c1, *c2;
gtk_style_context_get_background_color (context, state, &bg);
gtk_style_context_get_color (context, state, &fg);
// FIXME: should we cache the shade_bg?
c1 = gtk_symbolic_color_new_literal (&bg);
c2 = gtk_symbolic_color_new_shade (c1, 0.7);
gtk_symbolic_color_resolve (c2, NULL, &shade_bg);
gtk_symbolic_color_unref (c1);
gtk_symbolic_color_unref (c2);
gtk_style_context_get_color (context, GTK_STATE_FLAG_INSENSITIVE, &shade_bg);
gdk_cairo_set_source_rgba (cr, highlight ? &fg : &shade_bg);
gdk_cairo_rectangle (cr, area);
......
......@@ -8,3 +8,7 @@
border-radius: 10px;
padding: 10px;
}
EvView {
background-color: @theme_bg_color;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment