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:24:30 +0100
commit1d90b700c7bf5036e9f1e7ddd0adb09bd39467ce (patch)
tree564d016e3cae8c41720779814bd6eb78d9c10624 /shell
parent1b1f2c58617b72efb9aad7ebc98fe390138d733f (diff)
downloadatril-1d90b700c7bf5036e9f1e7ddd0adb09bd39467ce.tar.bz2
atril-1d90b700c7bf5036e9f1e7ddd0adb09bd39467ce.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;
+}
+