summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-16 22:21:49 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-18 20:37:00 +0200
commit93a781c8b9d34effd376537268970193b9b01479 (patch)
tree719008d31a03a1b8904935e37b440d7aec33b8d1 /src/wx
parentfecfda4c913da3f60ab4329d1f4f412bc27d19a7 (diff)
Fix dark mode for release notes.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/html_dialog.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/html_dialog.cc b/src/wx/html_dialog.cc
index 19c3aaf2a..c8138c8cd 100644
--- a/src/wx/html_dialog.cc
+++ b/src/wx/html_dialog.cc
@@ -52,6 +52,10 @@ HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html, bool ok
h->SetPage (html);
sizer->Add (h, 1, wxEXPAND | wxALL, 6);
+ if (gui_is_dark()) {
+ h->SetHTMLBackgroundColour(*wxBLACK);
+ }
+
h->Bind (wxEVT_HTML_LINK_CLICKED, boost::bind(&HTMLDialog::link_clicked, this, _1));
SetSizer (sizer);