diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-08-22 19:00:53 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-08-22 19:00:53 +0200 |
commit | 9a828fe5ebd2383cce394eb76f44d14a9dbf143e (patch) | |
tree | ce52323fc58d008fd7894b6bdc68b878f405c7df /src/book-view.vala | |
parent | aaee9a923e009ee33fad324687579ede5de7e6ce (diff) | |
parent | b97bb9c9e991504bb4fae916a75a8426b78b68b9 (diff) |
Merge branch 'release/debian/40.1-1'debian/40.1-1
Diffstat (limited to 'src/book-view.vala')
-rw-r--r-- | src/book-view.vala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/book-view.vala b/src/book-view.vala index 12da06f..59e2469 100644 --- a/src/book-view.vala +++ b/src/book-view.vala @@ -189,7 +189,14 @@ public class BookView : Gtk.Box private void add_cb (Book book, Page page) { - var page_view = new PageView (page); + Gdk.RGBA page_ruler_color; + if (!get_style_context ().lookup_color ("theme_fg_color", out page_ruler_color)) + { + warning ("Couldn't get theme_fg_color from GTK theme, needed to draw the page view ruler"); + /* Use a bright color so that theme makers notice it. */ + page_ruler_color.parse ("#00ff00"); + } + var page_view = new PageView (page, page_ruler_color); page_view.changed.connect (page_view_changed_cb); page_view.size_changed.connect (page_view_size_changed_cb); page_data.insert (page, page_view); |