mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-08 08:20:59 -04:00
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.
This commit is contained in:
parent
1a755d0da2
commit
7334b53d83
6 changed files with 43 additions and 10 deletions
11
config.c
11
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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue