Avoid overriding text control color in generic wxSearchCtrl
Although it's the same color the control already had, overriding it can have unexpected consequences, such as overriding the text selection colors with GTK3. Fixes invisible wxSearchCtrl selection with GTK3.
This commit is contained in:
parent
281ad86d8d
commit
f2106dcc3c
@ -332,6 +332,7 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
m_cancelBitmap);
|
||||
|
||||
SetBackgroundColour( m_text->GetBackgroundColour() );
|
||||
m_text->SetBackgroundColour(wxColour());
|
||||
|
||||
RecalcBitmaps();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user