Add Dark mode detection to MacOS
This commit is contained in:
parent
46d71f0d23
commit
48bd564639
|
@ -30,8 +30,8 @@
|
|||
|
||||
bool KIPLATFORM::UI::IsDarkTheme()
|
||||
{
|
||||
// TODO(ISM): Write this function
|
||||
return false;
|
||||
NSString *appearanceName = [[NSAppearance currentAppearance] name];
|
||||
return !![appearanceName containsString:@"Dark"];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue