Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit01ec661788758698d3a791c835023d067beee050 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-03-31 05:52:11 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-03-31 05:53:36 +0200
Files9cd485be05f5fce3048a06ee22ce05047cab7b65
goodwolf-01ec661788758698d3a791c835023d067beee050.tar
goodwolf-01ec661788758698d3a791c835023d067beee050.tar.gz
goodwolf-01ec661788758698d3a791c835023d067beee050.zip
Parent3fe2bff627575a6dced09e0e49e775acc773c514 (diff)
Unscrew the dark-theme with yet another hack
2 files changed, 2 insertions, 13 deletions
-rw-r--r--badwolf.c9
-rw-r--r--config.h6
diff --git a/badwolf.c b/badwolf.c
index 93ab325..16862b6 100644
--- 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
index 789cdf4..ec92dda 100644
--- 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 */