aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.c b/config.c
index 028c91bc..265f9379 100644
--- a/config.c
+++ b/config.c
@@ -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;