Enum Class AccentColor

java.lang.Object
java.lang.Enum<AccentColor>
org.gnome.adw.AccentColor
All Implemented Interfaces:
Serializable, Comparable<AccentColor>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum AccentColor extends Enum<AccentColor> implements Enumeration
Describes the available system accent colors.
Since:
1.6
  • Enum Constant Details

    • BLUE

      public static final AccentColor BLUE
      Use a blue color (#3584e4). This is the default value.
    • TEAL

      public static final AccentColor TEAL
      Use a teal color (#2190a4).
    • GREEN

      public static final AccentColor GREEN
      Use a green color (#3a944a).
    • YELLOW

      public static final AccentColor YELLOW
      Use a yellow color (#c88800).
    • ORANGE

      public static final AccentColor ORANGE
      Use a orange color (#ed5b00).
    • RED

      public static final AccentColor RED
      Use a red color (#e62d42).
    • PINK

      public static final AccentColor PINK
      Use a pink color (#d56199).
    • PURPLE

      public static final AccentColor PURPLE
      Use a purple color (#9141ac).
    • SLATE

      public static final AccentColor SLATE
      Use a slate color (#6f8396).
  • Method Details

    • values

      public static AccentColor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccentColor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static AccentColor of(int value)
      Create a new AccentColor for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static AccentColor of(MemorySegment address)
      Create a new AccentColor for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the AccentColor class.
      Returns:
      the GType
    • toRgba

      public void toRgba(RGBA rgba)

      Converts this AccentColor to a GdkRGBA representing its background color.

      The matching foreground color is white.

      Parameters:
      rgba - return location for the color
      Since:
      1.6
    • toStandaloneRgba

      public void toStandaloneRgba(boolean dark, RGBA rgba)

      Converts this AccentColor to a GdkRGBA representing its standalone color.

      It will typically be darker for light background, and lighter for dark background, ensuring contrast.

      Parameters:
      dark - Whether to calculate standalone color for light or dark background
      rgba - return location for the color
      Since:
      1.6