config: add optional ‘center’ argument to ‘pad’

When set, the grid contents is centered in the window. I.e. the
left/right and top/bottom margins are equal (+- 1px).

This causes the content to “jump” while doing an interactive resize,
but may still be preferred in e.g. a tiling WM.

Closes #273
This commit is contained in:
Daniel Eklöf 2021-01-06 11:17:29 +01:00
parent 21dbb44a30
commit e14c592f39
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 44 additions and 8 deletions

View file

@ -23,6 +23,13 @@
## Unreleased
### Added
* The `pad` option now accepts an optional third argument, `center`
(e.g. `pad=5x5 center`), causing the grid to be centered in the
window, with equal amount of padding of the left/right and
top/bottom side (https://codeberg.org/dnkl/foot/issues/273).
### Changed
* The fcft and tllist library subprojects are now handled via Meson