summaryrefslogtreecommitdiff
path: root/src/wx/html_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-18 20:37:14 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-18 20:37:14 +0200
commita2b97a1e3e4211a5c6b86ab780bcb9f5f4a9eeeb (patch)
tree354d75141352ab018a7a7020a28c68691ec1a23e /src/wx/html_dialog.cc
parente983d424808894dc9b036c46cd61d8fa39487dfd (diff)
parent179685ef5cfb81d362282ee2fae526533e6404a3 (diff)
Improve the appearance of things in macOS dark mode in various ways.
Diffstat (limited to 'src/wx/html_dialog.cc')
-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);