From 9b97d3a308d2e918f7eb4016bb5555e59f5e6bdf Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 13 Feb 2024 21:55:35 +0100 Subject: [PATCH] Fix generic wxSearchCtrl background colour in wxQt Set the background colour of the whole control to the text control background colour. --- src/generic/srchctlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 6b902b4485..a3b63dbfe9 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -306,8 +306,8 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id, wxEVT_SEARCH, m_searchBitmap); - SetBackgroundColour( m_text->GetBackgroundColour() ); m_text->SetBackgroundColour(wxColour()); + SetBackgroundColour( m_text->GetBackgroundColour() ); RecalcBitmaps();