Match caret color to foreground color
Fixes cursor visibility in text control with non-default foreground color See #18722
This commit is contained in:
@@ -5558,6 +5558,11 @@ void wxWindowGTK::GTKApplyWidgetStyle(bool forceStyle)
|
|||||||
wxGtkString(gdk_rgba_to_string(fg_sel)).c_str(),
|
wxGtkString(gdk_rgba_to_string(fg_sel)).c_str(),
|
||||||
wxGtkString(gdk_rgba_to_string(bg_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)
|
if (isBg)
|
||||||
{
|
{
|
||||||
// make "undershoot" node background transparent,
|
// make "undershoot" node background transparent,
|
||||||
|
Reference in New Issue
Block a user