From 02970c6cc1a6752ddc41325cc629c29cafe556c7 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 21 Mar 2018 21:03:17 +0100 Subject: libview: use css to draw the background of presentations With the recent changes in gtk+, widgets have to draw themselves, causing the current use of gdk_window_set_background_rgba to fail. https://bugzilla.gnome.org/show_bug.cgi?id=765557 view: Redraw ev-view-presentation when setting normal and black mode. The black and normal mode are the same from the CSS point of view. The difference is that in the draw function the page is not drawn in black mode. Hence, we need to explicitly queue a redraw in these cases. Since setting the white mode add a CSS class, this queues the redraw for us. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=772390. origin commits: https://git.gnome.org/browse/evince/commit/?id=2b352b3 https://git.gnome.org/browse/evince/commit/?id=b3f49f4 Fixes https://github.com/mate-desktop/atril/issues/232 --- shell/atril.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'shell') diff --git a/shell/atril.css b/shell/atril.css index e834616e..9cffc6be 100644 --- a/shell/atril.css +++ b/shell/atril.css @@ -1,3 +1,19 @@ #ev-fullscreen-toolbar { } + +#ev-loading-message { + background-color: @theme_selected_bg_color; + color: @theme_selected_fg_color; + border-radius: 3px; + padding: 8px; +} + +evpresentationview { + background-color: black; +} + +evpresentationview.white-mode { + background-color: white; +} + -- cgit v1.2.1