Skip to content

Commit

Permalink
Match caret color to foreground color
Browse files Browse the repository at this point in the history
Fixes cursor visibility in text control with non-default foreground color
See #18722
  • Loading branch information
paulcor committed Apr 11, 2020
1 parent 802ee49 commit 2197f9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gtk/window.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 2197f9d

Please sign in to comment.