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:
committed by
jean-pierre charras
parent
0acd707650
commit
5f53019290
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user