We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc5fcd commit 96a1e24Copy full SHA for 96a1e24
ColorSetKit/NSColor+ColorSetKit.swift
@@ -598,11 +598,19 @@ public extension NSColor
598
return true
599
}
600
601
- else
+ else if appearance?.name == .vibrantDark
602
{
603
- return appearance?.name == .vibrantDark
+ return true
604
605
606
- return false
+ return isCustomAppearanceDark?( appearance ) ?? false
607
+ }
608
+
609
+ @objc
610
+ class func setCustomAppearanceDarkChecker( _ checker: ( ( NSAppearance? ) -> Bool )? )
611
+ {
612
+ isCustomAppearanceDark = checker
613
614
615
+ private static var isCustomAppearanceDark: ( ( NSAppearance? ) -> Bool )?
616
0 commit comments