summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-03-21 21:03:17 +0100
committerraveit65 <[email protected]>2018-03-22 21:45:13 +0100
commit02970c6cc1a6752ddc41325cc629c29cafe556c7 (patch)
treef86042af29d138d6b1d6e36736d0480ff21af354 /shell
parent1e531cb51ecc5ff278b36972f89d2a00fe0adeb4 (diff)
downloadatril-02970c6cc1a6752ddc41325cc629c29cafe556c7.tar.bz2
atril-02970c6cc1a6752ddc41325cc629c29cafe556c7.tar.xz
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
Diffstat (limited to 'shell')
-rw-r--r--shell/atril.css16
1 files changed, 16 insertions, 0 deletions
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;
+}
+