Fix fg threshold not applying when using legacy text composition

Also note that it does not work with multi-pass rendering.
This commit is contained in:
Kovid Goyal
2023-05-24 21:02:00 +05:30
parent d059ddbb07
commit b0b65c452e
2 changed files with 26 additions and 17 deletions

View File

@@ -276,7 +276,9 @@ ranging from :code:`0` to :code:`100`. If the difference in luminance of the
foreground and background is below this threshold, the foreground color will be set
to white if the background is dark or black if the background is light. The default
value is :code:`0`, which means no overriding is performed. Useful when working with applications
that use colors that do not contrast well with your preferred color scheme.
that use colors that do not contrast well with your preferred color scheme. Note that this
will not work in situations where kitty has to render in multiple passes, for example,
when rendering with images under text.
''')
egr() # }}}