1
Description: Set wxInfoBarGeneric text colour correctly
2
For some reason SetOwnForegroundColour() was used, but we really need to set
3
the colour of the child text control and not our own colour here (which is not
5
This makes the text visible even when using non default tooltip colours, which
6
could previously result in black-on-black text.
7
Origin: upstream, http://trac.wxwidgets.org/changeset/75213
8
Bug: http://trac.wxwidgets.org/ticket/15671
9
Applied-Upstream: http://trac.wxwidgets.org/changeset/75213
10
Last-Update: 2013-11-30
12
Index: /wxWidgets/branches/WX_3_0_BRANCH/src/generic/infobar.cpp
13
===================================================================
14
--- a/src/generic/infobar.cpp (revision 74602)
15
+++ b/src/generic/infobar.cpp (revision 75213)
18
// use special, easy to notice, colours
19
- const wxColour colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK);
20
- SetBackgroundColour(colBg);
21
- SetOwnForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT));
22
+ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK));
24
// create the controls: icon, text and the button to dismiss the
27
m_text = new wxStaticText(this, wxID_ANY, "");
28
+ m_text->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT));
30
m_button = wxBitmapButton::NewCloseButton(this, wxID_ANY);