X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6be0b53f3d08680cf2e719e05d9756f3442c166c..e2c922f53f6a8f08e8a82817c75981822dbe9ca1:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index b2d0137a74..0709e77518 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -31,6 +31,7 @@ #include "wx/html/htmlwin.h" #include "wx/fontmap.h" #include "wx/log.h" +#include "wx/settings.h" //----------------------------------------------------------------------------- @@ -187,8 +188,11 @@ void wxHtmlWinParser::InitParser(const wxString& source) #endif m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor)); + wxColour windowColour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) ; m_Container->InsertCell( - new wxHtmlColourCell(GetWindow() ? GetWindow()->GetBackgroundColour() : *wxWHITE, + new wxHtmlColourCell(GetWindow() ? + GetWindow()->GetBackgroundColour() : + windowColour, wxHTML_CLR_BACKGROUND)); m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont())); }