Add Dark mode detection to MacOS

This commit is contained in:
Seth Hillbrand 2021-02-23 13:34:24 -08:00
parent 46d71f0d23
commit 48bd564639
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@
bool KIPLATFORM::UI::IsDarkTheme() bool KIPLATFORM::UI::IsDarkTheme()
{ {
// TODO(ISM): Write this function NSString *appearanceName = [[NSAppearance currentAppearance] name];
return false; return !![appearanceName containsString:@"Dark"];
} }