Substitute all wxHtmlWindow with HTML_WINDOW

Remove other places where <body> tag is used to override the default
black-on-white theme.
This commit is contained in:
Mikolaj Wielgus
2021-10-12 07:07:15 +00:00
committed by jean-pierre charras
parent 0acd707650
commit 5f53019290
38 changed files with 302 additions and 522 deletions
+1 -14
View File
@@ -80,20 +80,7 @@ HTML_MESSAGE_BOX::~HTML_MESSAGE_BOX()
void HTML_MESSAGE_BOX::reload()
{
// Handle light/dark mode colors...
wxTextCtrl dummy( m_host, wxID_ANY );
wxColour foreground = dummy.GetForegroundColour();
wxColour background = dummy.GetBackgroundColour();
m_htmlWindow->SetPage( wxString::Format( wxT( "<html>"
" <body bgcolor='%s' text='%s'>"
" %s"
" </body>"
"</html>" ),
background.GetAsString( wxC2S_HTML_SYNTAX ),
foreground.GetAsString( wxC2S_HTML_SYNTAX ),
m_source ) );
m_htmlWindow->SetPage( m_source );
}