Skip to content

Commit 8e81e60

Browse files
committed
Fix for unit-tests
1 parent 7fbeed3 commit 8e81e60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ColorSetKit/NSColor+ColorSetKit.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,11 @@ import Cocoa
550550

551551
@nonobjc private class func isDarkModeOn( forView view: NSView? ) -> Bool
552552
{
553+
if NSApp == nil
554+
{
555+
return false
556+
}
557+
553558
if #available( macOS 10.14, * )
554559
{
555560
let name = view?.effectiveAppearance.name ?? NSApp.effectiveAppearance.name

0 commit comments

Comments
 (0)