diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-13 16:40:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-13 16:40:34 +0000 |
| commit | d1a76a67c0c8c4ad3341cf9baa95f48e0e6d8fb1 (patch) | |
| tree | fc6a5d6c1284bd7a7f035ae66998fa16f2c27a15 /config.c | |
| parent | doc: foot.ini: try to clear up the meaning of (AA)RRGGBB (diff) | |
| parent | config: add [colors].dim0-7 (diff) | |
Merge branch 'configurable-dim-colors'
Closes #776
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1290,6 +1290,14 @@ parse_section_colors(struct context *ctx) else if (key_len == 7 && str_has_prefix(key, "bright") && last_digit < 8) color = &conf->colors.table[8 + last_digit]; + else if (key_len == 4 && str_has_prefix(key, "dim") && last_digit < 8) { + if (!value_to_color(ctx, &conf->colors.dim[last_digit], false)) + return false; + + conf->colors.use_custom.dim |= 1 << last_digit; + return true; + } + else if (strcmp(key, "foreground") == 0) color = &conf->colors.fg; else if (strcmp(key, "background") == 0) color = &conf->colors.bg; else if (strcmp(key, "selection-foreground") == 0) color = &conf->colors.selection_fg; |
