]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0520: Reversed text opacity in popup when termguicolor is set v9.2.0520
authorShad <shadow.walker@free.fr>
Sat, 23 May 2026 18:43:09 +0000 (18:43 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 23 May 2026 18:43:09 +0000 (18:43 +0000)
commitd7e6ce7a767209ed046c8cb04091b47128892954
treecfa27dd5a9e3363415a24a70f0b87c070d6d7856
parent3a54de8f441730dfe617892c7a08817252618a1c
patch 9.2.0520: Reversed text opacity in popup when termguicolor is set

Problem:  When termguicolor is set, popup opacity seems reversed
          for the underlying text: when opacity go from 1 to 99,
          the greater opacity is, the more underlying text is readable.
Solution: Invert popup_color and base_fg when calling blend_colors
          (Shad).

fixes:  #20283
closes: #20284

Signed-off-by: Shad <shadow.walker@free.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/highlight.c
src/testdir/dumps/Test_popupwin_opacity_textprop_undercurl.dump
src/testdir/dumps/Test_popupwin_opacity_vsplit_1.dump
src/testdir/dumps/Test_popupwin_opacity_vsplit_2.dump
src/testdir/dumps/Test_popupwin_opacity_wide_1.dump
src/testdir/dumps/Test_popupwin_opacity_wide_2.dump
src/version.c