Match caret color to foreground color

Fixes cursor visibility in text control with non-default foreground color
See #18722
This commit is contained in:
Paul Cornett
2020-04-11 08:48:12 -07:00
parent 802ee492d6
commit 2197f9d10e

View File

@@ -5558,6 +5558,11 @@ void wxWindowGTK::GTKApplyWidgetStyle(bool forceStyle)
wxGtkString(gdk_rgba_to_string(fg_sel)).c_str(),
wxGtkString(gdk_rgba_to_string(bg_sel)).c_str());
if (isFg)
{
g_string_append_printf(css, "*{caret-color:%s}",
wxGtkString(gdk_rgba_to_string(fg)).c_str());
}
if (isBg)
{
// make "undershoot" node background transparent,