From 274e4265a85e0de5a5a7ad7ed8038ddbf0dbeecb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Sep 2012 20:34:46 +0000 Subject: [PATCH] Don't use text control foreground colour for generic wxSearchCtrl itself. Logically, it should be done in the other direction and also doing it like this means that the search and cancel icons, rendered using the current foreground colour, are barely visible when using generic wxTextCtrl::SetHint() implementation, as in wxGTK, because the text control foreground is set to light grey in this case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/srchctlg.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 4bbf12d12a..2317d2bfb5 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -322,7 +322,6 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id, wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN, m_cancelBitmap); - SetForegroundColour( m_text->GetForegroundColour() ); SetBackgroundColour( m_text->GetBackgroundColour() ); RecalcBitmaps(); -- 2.45.2