X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9806a0e71eb2190827e93cd463e9682a3b939eee..3c85ada9dbd66f72f174c049744e8cdaa444d99f:/src/generic/tipwin.cpp diff --git a/src/generic/tipwin.cpp b/src/generic/tipwin.cpp index 1469b554c7..06e94b7636 100644 --- a/src/generic/tipwin.cpp +++ b/src/generic/tipwin.cpp @@ -34,6 +34,7 @@ #include "wx/tipwin.h" #include "wx/timer.h" +#include "wx/settings.h" // ---------------------------------------------------------------------------- // constants @@ -99,7 +100,14 @@ wxTipWindow::wxTipWindow(wxWindow *parent, { // set colours SetForegroundColour(*wxBLACK); - SetBackgroundColour(wxColour(255, 255, 231)); + +#ifdef __WXMSW__ + wxColour bkCol(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_INFOBK)); +#else + wxColour bkCol(wxColour(255, 255, 225)); +#endif + SetBackgroundColour(bkCol); + // set position and size int x, y; wxGetMousePosition(&x, &y); @@ -154,7 +162,12 @@ wxTipWindowView::wxTipWindowView(wxWindow *parent) { // set colours SetForegroundColour(*wxBLACK); - SetBackgroundColour(wxColour(255, 255, 231)); +#ifdef __WXMSW__ + wxColour bkCol(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_INFOBK)); +#else + wxColour bkCol(wxColour(255, 255, 225)); +#endif + SetBackgroundColour(bkCol); m_creationTime = wxGetLocalTime(); }