ENH:optimized msg window style

Change-Id: I2acf6b8fe8f058a1aad8b782deb0d43334d3a770
This commit is contained in:
tao wang 2023-06-06 19:42:06 +08:00 committed by Lane.Wei
parent 060ba6c70e
commit fb68d7745f
2 changed files with 14 additions and 9 deletions

View file

@ -312,7 +312,7 @@ static void add_msg_content(wxWindow* parent, wxBoxSizer* content_sizer, wxStrin
// Code formatting will be preserved. This is useful for reporting errors from the placeholder parser.
msg_escaped = std::string("<pre><code>") + msg_escaped + "</code></pre>";
html->SetPage("<html><body bgcolor=\"" + bgr_clr_str + "\"><font color=\"" + text_clr_str + "\">" + wxString::FromUTF8(msg_escaped.data()) + "</font></body></html>");
content_sizer->Add(html, 1, wxEXPAND);
content_sizer->Add(html, 1, wxEXPAND|wxRIGHT,12);
wxGetApp().UpdateDarkUIWin(html);
}