diff options
| author | Fazzi <faaris.ansari@proton.me> | 2023-10-09 17:47:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-04-14 14:47:45 +0000 |
| commit | 5f83278afd0530c323d4192e1095b3d1dea644c9 (patch) | |
| tree | 90be5a46f4e652c83df51f2a36b987895269d69a /config.c | |
| parent | doc: foot.ini: workers: "if you have a ridiculous number of cores" (diff) | |
config: add alpha_mode option
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1095,6 +1095,15 @@ parse_section_main(struct context *ctx) return true; } + else if (strcmp(key, "alpha-mode") == 0) { + _Static_assert(sizeof(conf->alpha_mode) == sizeof(int), + "enum is not 32-bit"); + return value_to_enum( + ctx, + (const char *[]){"default", "matching", "all", NULL}, + (int *)&conf->alpha_mode); + } + else { LOG_CONTEXTUAL_ERR("not a valid option: %s", key); return false; @@ -3338,6 +3347,7 @@ config_load(struct config *conf, const char *conf_path, }, .multiplier = 3., }, + .alpha_mode = ALPHA_MODE_DEFAULT, .colors = { .fg = default_foreground, .bg = default_background, |
