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()
{
// TODO(ISM): Write this function
return false;
NSString *appearanceName = [[NSAppearance currentAppearance] name];
return !![appearanceName containsString:@"Dark"];
}