diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-26 23:44:28 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-26 23:44:28 +0100 |
commit | bcff7094627e423dd9ca52a246345512dc3d791c (patch) | |
tree | c041d710eed4453091439f2c468113d9d635f1fc /src/config.c | |
parent | 97aded721dd0bf33a56839517921e4c7094c90d7 (diff) |
Add optional background around selected result.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 8ec6de4..713cc7e 100644 --- a/src/config.c +++ b/src/config.c @@ -262,7 +262,9 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const } else if (strcasecmp(option, "text-color") == 0) { tofi->window.entry.foreground_color = parse_color(filename, lineno, value, &err); } else if (strcasecmp(option, "selection-color") == 0) { - tofi->window.entry.selection_color = parse_color(filename, lineno, value, &err); + tofi->window.entry.selection_foreground_color = parse_color(filename, lineno, value, &err); + } else if (strcasecmp(option, "selection-background") == 0) { + tofi->window.entry.selection_background_color = parse_color(filename, lineno, value, &err); } else if (strcasecmp(option, "width") == 0) { tofi->window.width = parse_uint32_percent(filename, lineno, value, &err, tofi->output_width); } else if (strcasecmp(option, "height") == 0) { |