diff options
Unscrew the dark-theme with yet another hack
@@ -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"), @@ -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 */ |