aboutsummaryrefslogtreecommitdiff
path: root/fastiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-16 13:38:42 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-16 14:57:02 +0100
commitc4d58cb9ad154f536447f842d0f3026af3e4c976 (patch)
tree238aedebaf8ab62102c40efa00ceeac0b10628d0 /fastiv.c
parent9bebb0a3fecb8fa8bca102f48d10e09e494a6b4d (diff)
downloadfiv-c4d58cb9ad154f536447f842d0f3026af3e4c976.tar.gz
fiv-c4d58cb9ad154f536447f842d0f3026af3e4c976.tar.xz
fiv-c4d58cb9ad154f536447f842d0f3026af3e4c976.zip
Prefer the dark theme variant
Diffstat (limited to 'fastiv.c')
-rw-r--r--fastiv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fastiv.c b/fastiv.c
index 4d2da78..f006e3f 100644
--- a/fastiv.c
+++ b/fastiv.c
@@ -394,6 +394,12 @@ main(int argc, char *argv[])
gtk_container_add(GTK_CONTAINER(g.view_scroller), g.view);
gtk_widget_show_all(g.view_scroller);
+ // Maybe our custom widgets should derive colours from the theme instead.
+ gtk_scrolled_window_set_overlay_scrolling(
+ GTK_SCROLLED_WINDOW(g.view_scroller), FALSE);
+ g_object_set(gtk_settings_get_default(),
+ "gtk-application-prefer-dark-theme", TRUE, NULL);
+
g.browser_scroller = gtk_scrolled_window_new(NULL, NULL);
g.browser = g_object_new(FASTIV_TYPE_BROWSER, NULL);
gtk_widget_set_vexpand(g.browser, TRUE);