diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-16 13:38:42 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-16 14:57:02 +0100 |
commit | c4d58cb9ad154f536447f842d0f3026af3e4c976 (patch) | |
tree | 238aedebaf8ab62102c40efa00ceeac0b10628d0 /fastiv.c | |
parent | 9bebb0a3fecb8fa8bca102f48d10e09e494a6b4d (diff) | |
download | fiv-c4d58cb9ad154f536447f842d0f3026af3e4c976.tar.gz fiv-c4d58cb9ad154f536447f842d0f3026af3e4c976.tar.xz fiv-c4d58cb9ad154f536447f842d0f3026af3e4c976.zip |
Prefer the dark theme variant
Diffstat (limited to 'fastiv.c')
-rw-r--r-- | fastiv.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |