From 7334b53d833cd2695a3544ff166219e977138732 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 20 Jun 2021 10:44:50 +0200 Subject: config: add csd.button-color option This option controls the foreground color of the minimize/maximize/close buttons. I.e. the color used to draw the minimize/maximize/close glyphs. It defaults to default background color. --- config.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config.c') 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")) { -- cgit v1.3