C++11 tidying.
[dcpomatic.git] / src / wx / wx_util.cc
index 1a34e5fa808bc992d1bd14bb55368848f0080862..47b381562aa375a93e02bcc2b731b9099f8023e2 100644 (file)
@@ -297,7 +297,7 @@ checked_set (wxChoice* widget, string value)
 
 
 void
-checked_set (wxChoice* widget, vector<pair<string, string> > items)
+checked_set (wxChoice* widget, vector<pair<string, string>> items)
 {
        vector<pair<string, string>> current;
        for (unsigned int i = 0; i < widget->GetCount(); ++i) {
@@ -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
+}
+