X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..9f4ed8613c2853dbf8b190b41dbdafa960b33a85:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index e8cbb16fff..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,6 +188,12 @@ 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() : + windowColour, + wxHTML_CLR_BACKGROUND)); m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont())); }