Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #232
- Loading branch information
Showing
2 changed files
with
32 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,19 @@ | |||
#ev-fullscreen-toolbar { | #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; | |||
} | |||
|