Skip to content

Commit 5b8a4ca

Browse files
committed
Now using NSApp.effectiveAppearance to detect dark mode.
1 parent 8120e8b commit 5b8a4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ColorSetKit/NSColor+ColorSetKit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ + ( nullable NSColor * )colorFromColorSet: ( NSString * )name
9292

9393
if( @available( macOS 10.14, * ) )
9494
{
95-
if( pair.variant != nil && [ [ NSAppearance currentAppearance ].name isEqualToString: NSAppearanceNameDarkAqua ] )
95+
if( pair.variant != nil && [ NSApp.effectiveAppearance.name isEqualToString: NSAppearanceNameDarkAqua ] )
9696
{
9797
return pair.variant;
9898
}

0 commit comments

Comments
 (0)