//
//  NSAppearance+RSCore.swift
//  RSCore
//
//  Created by Daniel Jalkut on 8/28/18.
//  Copyright © 2018 Ranchero Software, LLC. All rights reserved.
//

#if os(macOS)
import AppKit

extension NSAppearance {
	
	public var isDarkMode: Bool {
		if #available(macOS 10.14, *) {
			return self.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
		}
		else {
			return false
		}
	}
}
#endif
