projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c979b9
)
Fix nag foreground colour in dark mode (#2848).
author
Carl Hetherington
<cth@carlh.net>
Mon, 15 Jul 2024 18:00:46 +0000
(20:00 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 15 Jul 2024 18:00:57 +0000
(20:00 +0200)
src/wx/html_dialog.cc
patch
|
blob
|
history
diff --git
a/src/wx/html_dialog.cc
b/src/wx/html_dialog.cc
index 0543a66d5a564486fd0c3e96a1c9d9a14edfef84..44b51bbe00a3acc04f925cab82eee17dfa1f582c 100644
(file)
--- 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("<body text=\"white\">%s</body>", 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);