diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-22 23:33:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-06-25 21:58:38 +0200 |
| commit | 8eaf36467713e7ba9a1a2272a44aa1581e31c1b0 (patch) | |
| tree | 8d79c388363803e0f811331e50c43e4e1cc71467 /src/wx/wx_util.cc | |
| parent | b7aa70911ed89511c2dc8b430e3c348a43b9c020 (diff) | |
Extract gui_is_dark() to wx_util.
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 1a34e5fa8..a0beb8f72 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -661,3 +661,15 @@ small_button_size (wxWindow* parent, wxString text) return size; } + +bool +gui_is_dark () +{ +#if defined(DCPOMATIC_OSX) && wxCHECK_VERSION(3, 1, 0) + auto appearance = wxSystemSettings::GetAppearance(); + return appearance.IsDark(); +#else + return false; +#endif +} + |
