aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-20 11:53:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-20 11:53:21 +0000
commit8177dbcc8697c57792b69b7bc0a8be5ffe890388 (patch)
tree363c5a6b25152c16a5e13240aab30a57255c23a2 /config.c
parenturi: hostname_is_localhost(): don’t crash if hostname == NULL (diff)
parentconfig: add csd.button-color option (diff)
Merge branch 'csd-button-fg-color'
Diffstat (limited to 'config.c')
-rw-r--r--config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.c b/config.c
index 9a2af7c3..92d2b69f 100644
--- a/config.c
+++ b/config.c
@@ -1316,6 +1316,17 @@ parse_section_csd(const char *key, const char *value, struct config *conf,
conf->csd.button_width = pixels;
}
+ else if (strcmp(key, "button-color") == 0) {
+ uint32_t color;
+ if (!str_to_color(value, &color, true, conf, path, lineno, "csd", "button-color")) {
+ LOG_AND_NOTIFY_ERR("%s:%d: invalid button-color: %s", path, lineno, value);
+ return false;
+ }
+
+ conf->csd.color.buttons_set = true;
+ conf->csd.color.buttons = color;
+ }
+
else if (strcmp(key, "button-minimize-color") == 0) {
uint32_t color;
if (!str_to_color(value, &color, true, conf, path, lineno, "csd", "button-minimize-color")) {