diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-05-05 10:43:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-05-05 11:02:32 +0000 |
| commit | 073b637d4535cd0dfe92ca1ce954b552ae9f1a4a (patch) | |
| tree | 712ef9e9f37ddbf6a8e32ef468743c95e48b715d /config.c | |
| parent | doc: foot.ini: fix description of dark/light themes (diff) | |
render: refactor to allow setting only selection bg or fg
Before this, we only applied custom selection colors, if *both* the
selection bg and fg had been set.
Since the options are already split up into two separate options, and
since it makes sense to at least be able to keep the foreground colors
unchanged (i.e. only setting the selection background), let's allow
only having one of the selection colors set.
Closes #1846
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -3403,7 +3403,6 @@ config_load(struct config *conf, const char *conf_path, .cursor = 0, }, .use_custom = { - .selection = false, .jump_label = false, .scrollback_indicator = false, .url = false, @@ -3593,10 +3592,6 @@ config_load(struct config *conf, const char *conf_path, if (!config_override_apply(conf, overrides, errors_are_fatal)) ret = !errors_are_fatal; - conf->colors.use_custom.selection = - conf->colors.selection_fg >> 24 == 0 && - conf->colors.selection_bg >> 24 == 0; - if (ret && conf->fonts[0].count == 0) { struct config_font font; if (!config_font_parse("monospace", &font)) { |
