configure full color palette in foot.ini

Allow the use of numeric keys in [colors] to configure the full set of
256 colors in the palette. Fixes #489
This commit is contained in:
Ryan Farley 2021-05-08 02:18:45 -05:00
parent 63572e4223
commit 3b089b4203
4 changed files with 28 additions and 4 deletions

View file

@ -375,9 +375,9 @@ applications can change these at runtime.
# SECTION: colors
This section controls the 16 ANSI colors and the default foreground
and background colors. Note that applications can change these at
runtime.
This section controls the 16 ANSI colors, the default foreground
and background colors, and the extended 256 color palette. Note that
applications can change these at runtime.
The colors are in RRGGBB format. That is, they do *not* have an alpha
component. You can configure the background transparency with the
@ -401,6 +401,12 @@ _alpha_ option.
_bfebbf_, _f0dfaf_, _8cd0d3_, _fcace3_, _b3ffff_ and _ffffff_ (a
variant of the _zenburn_ theme).
*0* *..* *255*
Arbitrary colors in the 256-color palette. Default: for *0* *..*
*15*, see regular and bright defaults above; see
https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit for an
explanation of the remainder.
*alpha*
Background translucency. A value in the range 0.0-1.0, where 0.0
means completely transparent, and 1.0 is opaque. Default: _1.0_.