Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VAppearances – Release 5
Interface org.violetlib.vappearances.VAppearance
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.vappearances

Interface VAppearance

  • public interface VAppearance
    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
      Ordinary member indicator getColors Reveal DetailHide Detail
      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.
      Ordinary member indicator getName Reveal DetailHide Detail
      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.
      Returns:
      the appearance name.
      Ordinary member indicator getSettings Reveal DetailHide Detail
      abstract AppearanceSettings getSettings()
      Return the current appearance settings that may influence the system color values.
      AppearanceSettings getSettings()
      Return the current appearance settings that may influence the system color values.
      Ordinary member indicator isDark Reveal DetailHide Detail
      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.
      Ordinary member indicator isHighContrast Reveal DetailHide Detail
      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.
      Ordinary member indicator isTinted Reveal DetailHide Detail
      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.