summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-01-17 07:19:48 +0100
committerChristoph Lohmann <20h@r-36.net>2015-01-17 07:19:48 +0100
commitc2da2bae5dbca73f26fe77bb8080e2a90d3cbb1d (patch)
treed0fc904084ea270c014786cd97931a67eba14752 /config.def.h
parentc467e5a3b3f3e1d69b64d31a166aa9d69336ef53 (diff)
Major styles update.
In config.h there is now some styles array to apply site-specific styles. This can be toggled using the -mM flags. If a stylefile is manually specified, then this will overwrite everything.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 80a0feb..1b11d10 100644
--- a/config.def.h
+++ b/config.def.h
@@ -2,8 +2,8 @@
static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
"AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 "
"Safari/537.15 Surf/"VERSION;
-static char *stylefile = "~/.surf/style.css";
static char *scriptfile = "~/.surf/script.js";
+static char *styledir = "~/.surf/styles/";
static Bool kioskmode = FALSE; /* Ignore shortcuts */
static Bool showindicators = TRUE; /* Show indicators in window title */
@@ -27,6 +27,7 @@ static Bool enablespatialbrowsing = TRUE;
static Bool enableplugins = TRUE;
static Bool enablescripts = TRUE;
static Bool enableinspector = TRUE;
+static Bool enablestyles = TRUE;
static Bool loadimages = TRUE;
static Bool hidebackground = FALSE;
static Bool allowgeolocation = TRUE;
@@ -49,6 +50,12 @@ static Bool allowgeolocation = TRUE;
} \
}
+/* styles */
+static SiteStyle styles[] = {
+ /* regexp file in $styledir */
+ { ".*", "default.css" },
+};
+
#define MODKEY GDK_CONTROL_MASK
/* hotkeys */