]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use text control foreground colour for generic wxSearchCtrl itself.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 20:34:46 +0000 (20:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 20:34:46 +0000 (20:34 +0000)
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

index 4bbf12d12a133ec6644c64c449241cc90c3a63a3..2317d2bfb5be7f7fbf1e06f830a5fd9b162b8f38 100644 (file)
@@ -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();