summaryrefslogtreecommitdiff
path: root/surf/surf.c
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-04-29 16:10:23 -0500
committerstkhan <personal@slickd.xyz>2022-04-29 16:10:23 -0500
commitd4b3ef6f2d1aa93f2e73f371f49efc78d712db45 (patch)
tree22f7ce4972e3838f90783c588217a09d3a502400 /surf/surf.c
parented7f420ff0f7fd71b0ed36ace22deb7f7c41e0e0 (diff)
Updated surf, new theme
Diffstat (limited to 'surf/surf.c')
-rw-r--r--surf/surf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/surf/surf.c b/surf/surf.c
index 579d688..552ea44 100644
--- a/surf/surf.c
+++ b/surf/surf.c
@@ -56,6 +56,7 @@ typedef enum {
CaretBrowsing,
Certificate,
CookiePolicies,
+ DarkMode,
DiskCache,
DefaultCharset,
DNSPrefetch,
@@ -261,6 +262,7 @@ char *argv0;
static ParamName loadtransient[] = {
Certificate,
CookiePolicies,
+ DarkMode,
DiskCache,
DNSPrefetch,
FileURLsCrossAccess,
@@ -809,6 +811,10 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
cookiepolicy_get());
refresh = 0;
break;
+ case DarkMode:
+ g_object_set(gtk_settings_get_default(),
+ "gtk-application-prefer-dark-theme", a->i, NULL);
+ break;
case DiskCache:
webkit_web_context_set_cache_model(
webkit_web_view_get_context(c->view), a->i ?