Add Dark mode detection to MacOS
This commit is contained in:
parent
46d71f0d23
commit
48bd564639
|
@ -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"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue