diff --git a/libs/kiplatform/osx/ui.mm b/libs/kiplatform/osx/ui.mm index 3ce864940f..f4f48a8a1f 100644 --- a/libs/kiplatform/osx/ui.mm +++ b/libs/kiplatform/osx/ui.mm @@ -30,8 +30,8 @@ bool KIPLATFORM::UI::IsDarkTheme() { - // TODO(ISM): Write this function - return false; + NSString *appearanceName = [[NSAppearance currentAppearance] name]; + return !![appearanceName containsString:@"Dark"]; }