Fix dark mode for release notes.
[dcpomatic.git] / src / wx / html_dialog.cc
index 19c3aaf2a11591987678cf666f105d66c5e7cbd1..c8138c8cd51cf65b7ca7ac06b9827f32ed4d816a 100644 (file)
@@ -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);