logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 01ec661788758698d3a791c835023d067beee050
parent: 3fe2bff627575a6dced09e0e49e775acc773c514
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 31 Mar 2020 05:52:11 +0200

Unscrew the dark-theme with yet another hack

Diffstat:

Mbadwolf.c9++-------
Mconfig.h6------
2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -536,6 +536,8 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat browser->statuslabel = gtk_label_new(NULL); browser->search = gtk_search_entry_new(); + setenv("GTK_THEME", ":light", 0); + WebKitWebContext *web_context = webkit_web_context_new_ephemeral(); webkit_web_context_set_sandbox_enabled(web_context, TRUE); webkit_web_context_set_process_model(web_context, @@ -752,13 +754,6 @@ main(int argc, char *argv[]) gtk_init(&argc, &argv); -#ifdef BADWOLF_PREFER_DARK_THEME - g_object_set(gtk_settings_get_default(), - "gtk-application-prefer-dark-theme", - BADWOLF_PREFER_DARK_THEME, - NULL); -#endif - fprintf(stderr, _("Running Badwolf version: %s\n"), version); fprintf(stderr, _("Buildtime WebKit version: %d.%d.%d\n"), diff --git a/config.h b/config.h @@ -87,10 +87,4 @@ */ #define BADWOLF_STATUSLABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE -/* BADWOLF_PREFER_DARK_THEME: Overwrites user GtkSettings for gtk-application-prefer-dark-theme - * Done as a temporary workaround against https://bugs.webkit.org/show_bug.cgi?id=197947 - * Remove definition to keep user settings, should only be done once the bug is fixed. - */ -#define BADWOLF_PREFER_DARK_THEME FALSE - #endif /* CONFIG_H_INCLUDED */