SystemTheme
public class SystemTheme: NSObject, Theme
System theme.
Will dynamically resolve to either ThemeManager.lightTheme
or ThemeManager.darkTheme
,
depending on the macOS preference at System Preferences > General > Appearance.
-
System theme identifier (static).
Declaration
Swift
@objc public static var identifier: String = "com.luckymarmot.ThemeKit.SystemTheme"
-
Unique theme identifier.
Declaration
Swift
public var identifier: String = SystemTheme.identifier
-
Theme display name.
Declaration
Swift
public var displayName: String
-
Theme short display name.
Declaration
Swift
public var shortDisplayName: String
-
Is this a dark theme?
Declaration
Swift
public var isDarkTheme: Bool = SystemTheme.isAppleInterfaceThemeDark
-
Checks if Apple UI theme is set to dark, as set on System Preferences > General > Appearance.
Declaration
Swift
@objc public static var isAppleInterfaceThemeDark: Bool = SystemTheme.isAppleInterfaceThemeDarkOnUserDefaults()