mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
Add pad-extend option
Adds a new boolean option `pad-extend` that extends edge cell background colors into the terminal padding/margins, similar to Ghostty's behavior. When enabled, the left/right margins use the background color of the adjacent edge cells, and top/bottom margins use the colors of the first/last row cells. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6fbb9b7d3b
commit
6a68b432ae
3 changed files with 106 additions and 0 deletions
4
config.c
4
config.c
|
|
@ -977,6 +977,9 @@ parse_section_main(struct context *ctx)
|
|||
return true;
|
||||
}
|
||||
|
||||
else if (streq(key, "pad-extend"))
|
||||
return value_to_bool(ctx, &conf->pad_extend);
|
||||
|
||||
else if (streq(key, "resize-delay-ms"))
|
||||
return value_to_uint16(ctx, 10, &conf->resize_delay_ms);
|
||||
|
||||
|
|
@ -3455,6 +3458,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
},
|
||||
.pad_x = 0,
|
||||
.pad_y = 0,
|
||||
.pad_extend = false,
|
||||
.center_when = CENTER_MAXIMIZED_AND_FULLSCREEN,
|
||||
.resize_by_cells = true,
|
||||
.resize_keep_grid = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue