Skip to content

Commit 26ca75e

Browse files
committed
fix: set default value for ThemeIsDark for cases where AppleInterfaceStyle does not exist (= light mode)
1 parent b4afc3a commit 26ca75e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/apphelpers.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,7 @@ function ThemeIsDark: Boolean;
28512851
{$ENDIF}
28522852
{$IFDEF DARWIN}
28532853
// Detect system's dark mode on macOS
2854+
Result := False;
28542855
cfValue := CFPreferencesCopyAppValue(
28552856
CFSTR('AppleInterfaceStyle'),
28562857
CFSTR('.GlobalPreferences')

0 commit comments

Comments
 (0)