From e9c728d964e5e9216fde2fc4224fa92cb0070d63 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Jul 2024 20:00:46 +0200 Subject: Fix nag foreground colour in dark mode (#2848). --- src/wx/html_dialog.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wx/html_dialog.cc b/src/wx/html_dialog.cc index 0543a66d5..44b51bbe0 100644 --- a/src/wx/html_dialog.cc +++ b/src/wx/html_dialog.cc @@ -49,13 +49,16 @@ HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html, bool ok ); auto h = new wxHtmlWindow (this); - h->SetPage (html); - sizer->Add (h, 1, wxEXPAND | wxALL, 6); if (gui_is_dark()) { + h->SetPage(wxString::Format("%s", html)); h->SetHTMLBackgroundColour(wxColour(50, 50, 50)); + } else { + h->SetPage(html); } + sizer->Add (h, 1, wxEXPAND | wxALL, 6); + h->Bind (wxEVT_HTML_LINK_CLICKED, boost::bind(&HTMLDialog::link_clicked, this, _1)); SetSizer (sizer); -- cgit v1.2.3