diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-10-03 07:05:37 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-10-03 07:05:37 +0200 |
commit | 51c339a92040e0a8ba9f0a7ae5b7a1d718a000e7 (patch) | |
tree | a3e0c9f678ba407238e9a7bf66e9135bc66ee85f /src/book-view.vala | |
parent | aafaa7c3ff1f88dadbad34559adab7b35be8542b (diff) | |
parent | 5084fc44ec673eddcd9a63366b057fa4caf30e60 (diff) |
Merge branch 'release/debian/42.5-1'debian/42.5-1
Diffstat (limited to 'src/book-view.vala')
-rw-r--r-- | src/book-view.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/book-view.vala b/src/book-view.vala index df2beb4..e16dc92 100644 --- a/src/book-view.vala +++ b/src/book-view.vala @@ -204,6 +204,7 @@ public class BookView : Gtk.Box selected_page_view.selected = true; selected_page_view = page; + redraw(); if (selected_page_view == null) return; @@ -444,6 +445,8 @@ public class BookView : Gtk.Box pages.append (get_nth_page (i)); var ruler_color = get_style_context ().get_color (get_state_flags ()); + Gdk.RGBA ruler_color_selected = {}; + ruler_color_selected.parse("#3584e4"); /* Gnome Blue 3 */ /* Render each page */ foreach (var page in pages) @@ -457,7 +460,7 @@ public class BookView : Gtk.Box context.save (); context.translate (-x_offset, 0); - page.render (context, ruler_color); + page.render (context, page == selected_page_view ? ruler_color_selected : ruler_color); context.restore (); if (page.selected) |