Package org.gnome.adw
Enum Class AccentColor
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<AccentColor>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum AccentColor
extends Enum<AccentColor>
implements Enumeration
Describes the available system accent colors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse a blue color (#3584e4
).Use a green color (#3a944a
).Use a orange color (#ed5b00
).Use a pink color (#d56199
).Use a purple color (#9141ac
).Use a red color (#e62d42
).Use a slate color (#6f8396
).Use a teal color (#2190a4
).Use a yellow color (#c88800
). -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the AccentColor classint
getValue()
Get the numeric value of this enumstatic AccentColor
of
(int value) Create a new AccentColor for the provided valuevoid
Converts this AccentColor to aGdkRGBA
representing its background color.void
toStandaloneRgba
(boolean dark, RGBA rgba) Converts this AccentColor to aGdkRGBA
representing its standalone color.static AccentColor
Returns the enum constant of this class with the specified name.static AccentColor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLUE
Use a blue color (#3584e4
). This is the default value. -
TEAL
Use a teal color (#2190a4
). -
GREEN
Use a green color (#3a944a
). -
YELLOW
Use a yellow color (#c88800
). -
ORANGE
Use a orange color (#ed5b00
). -
RED
Use a red color (#e62d42
). -
PINK
Use a pink color (#d56199
). -
PURPLE
Use a purple color (#9141ac
). -
SLATE
Use a slate color (#6f8396
).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-
toRgba
Converts this AccentColor to aGdkRGBA
representing its background color.The matching foreground color is white.
- Parameters:
rgba
- return location for the color
-
toStandaloneRgba
Converts this AccentColor to aGdkRGBA
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 backgroundrgba
- return location for the color
-