An object that represents a particular system appearance and provides access to its current system color values and
the appearance settings those colors are based on.
Methods
Modifier and Type
Method and Description
getColors
abstract Map<String,Color> getColors()
Return a non-modifiable map that provides the current values of the system colors associated with this appearance.
Map<String,Color> getColors()
Return a non-modifiable map that provides the current values of the system colors associated with this appearance.
getName
abstract String getName()
Return the system name of the appearance.
String getName()
Return the system name of the appearance. Currently, four names are possible in macOS:
NSAppearanceNameAqua – the original, light Aqua appearance, standard in macOS 10.10–10.13.
NSAppearanceNameDarkAqua – the dark system appearance introduced in macOS 10.14.
NSAppearanceNameVibrantLight – a light vibrant appearance, used in specific situations.
NSAppearanceNameVibrantDark – a dark vibrant appearance, used in specific situations.
Return the current appearance settings that may influence the system color values.
isDark
abstract boolean isDark()
Identify a dark system appearance.
boolean isDark()
Identify a dark system appearance.
Returns:
true if and only if this appearance is a dark appearance.
isHighContrast
abstract boolean isHighContrast()
Identify a high contrast system appearance.
boolean isHighContrast()
Identify a high contrast system appearance. A high contrast system appearance indicates that the user has enabled
the accessibility option to increase contrast in the UI.
Returns:
true if and only if this appearance is a high contrast appearance.
isTinted
abstract boolean isTinted()
Identify a tinted system appearance.
boolean isTinted()
Identify a tinted system appearance. This option was introduced in macOS 26. As of macOS 26.2, the tinted
option and the high contrast option are mutually exclusive.
Returns:
true if and only if the tinted option exists and is selected.