From edc47d8fed9994c5766038e7ae4481a14aeb0b82 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 9 Feb 2020 08:13:01 -0800 Subject: [PATCH] Fix appearance of GTK3 single-line wxTextCtrl with non-default background ...and more text than will fit. See #18663 --- src/gtk/window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 6cde78417e..c85fe9fbb1 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -5535,6 +5535,13 @@ void wxWindowGTK::GTKApplyWidgetStyle(bool forceStyle) g_string_append_printf(css, "%s{color:%s;background:%s}", s, wxGtkString(gdk_rgba_to_string(fg_sel)).c_str(), wxGtkString(gdk_rgba_to_string(bg_sel)).c_str()); + + if (isBg) + { + // make "undershoot" node background transparent, + // keeps expected look of GtkEntry with default theme + g_string_append(css, "* undershoot{background:transparent}"); + } } if (m_styleProvider == NULL && (isFg || isBg || isFont))