diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-07-27 17:14:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-07-28 17:02:56 +0000 |
| commit | d79a3b9350ba864464229a1c188e2f696fac5a26 (patch) | |
| tree | fec4b0cc07164d74ab66b6230f52b522df610057 /config.c | |
| parent | test: config: test colors.{jump-labels,scrollback-indicator} (diff) | |
config: add colors.search-box-{no-,}match
Closes #1112
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -1171,6 +1171,34 @@ parse_section_colors(struct context *ctx) return true; } + else if (strcmp(key, "search-box-no-match") == 0) { + if (!value_to_two_colors( + ctx, + &conf->colors.search_box.no_match.fg, + &conf->colors.search_box.no_match.bg, + false)) + { + return false; + } + + conf->colors.use_custom.search_box_no_match = true; + return true; + } + + else if (strcmp(key, "search-box-match") == 0) { + if (!value_to_two_colors( + ctx, + &conf->colors.search_box.match.fg, + &conf->colors.search_box.match.bg, + false)) + { + return false; + } + + conf->colors.use_custom.search_box_match = true; + return true; + } + else if (strcmp(key, "urls") == 0) { if (!value_to_color(ctx, &conf->colors.url, false)) return false; |
