From 2a92a0a5163ef60d88c08da9673c0178a5e60d29 Mon Sep 17 00:00:00 2001 From: Kvaz1r Date: Wed, 25 Aug 2021 10:48:04 +0300 Subject: [PATCH] Draw all borders for unfocused text control in wxUniv The borders didn't appear correctly when the control didn't have focus. Closes https://github.com/wxWidgets/wxWidgets/pull/2494 Closes #19248. --- src/univ/themes/gtk.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/univ/themes/gtk.cpp b/src/univ/themes/gtk.cpp index 01eeb97c45..eba730d16b 100644 --- a/src/univ/themes/gtk.cpp +++ b/src/univ/themes/gtk.cpp @@ -825,15 +825,11 @@ void wxGTKRenderer::DrawTextBorder(wxDC& dc, if ( border != wxBORDER_NONE ) { + DrawRect(dc, &rect, m_penBlack); if ( flags & wxCONTROL_FOCUSED ) { - DrawRect(dc, &rect, m_penBlack); DrawAntiShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight); } - else // !focused - { - DrawInnerShadedRect(dc, &rect); - } } if ( rectIn )