X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33ac7e6f01acbac1cff0ad400d8ea7f0bfd0a62f..84c5b38d579e140df28cfbb649587e8862148c89:/src/generic/tipwin.cpp diff --git a/src/generic/tipwin.cpp b/src/generic/tipwin.cpp index 9937d35037..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,12 +100,14 @@ wxTipWindow::wxTipWindow(wxWindow *parent, { // set colours SetForegroundColour(*wxBLACK); -#if !defined(__WXPM__) - SetBackgroundColour(wxColour(0xc3ffff)); + +#ifdef __WXMSW__ + wxColour bkCol(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_INFOBK)); #else - // What is 0xc3ffff, try some legable documentation for those of us who don't memorize hex codes?? - SetBackgroundColour(wxColour(*wxWHITE)); + wxColour bkCol(wxColour(255, 255, 225)); #endif + SetBackgroundColour(bkCol); + // set position and size int x, y; wxGetMousePosition(&x, &y); @@ -159,12 +162,12 @@ wxTipWindowView::wxTipWindowView(wxWindow *parent) { // set colours SetForegroundColour(*wxBLACK); -#if !defined(__WXPM__) - SetBackgroundColour(wxColour(0xc3ffff)); +#ifdef __WXMSW__ + wxColour bkCol(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_INFOBK)); #else - // What is 0xc3ffff, try some legable documentation for those of us who don't memorize hex codes?? - SetBackgroundColour(wxColour(*wxWHITE)); + wxColour bkCol(wxColour(255, 255, 225)); #endif + SetBackgroundColour(bkCol); m_creationTime = wxGetLocalTime(); }