Package com.formdev.flatlaf
Enum Class FlatIconColors
- All Implemented Interfaces:
Serializable
,Comparable<FlatIconColors>
,Constable
Default color palette for action icons and object icons.
The idea is to use only this well-defined set of colors in SVG icons, and then they are replaced at runtime to dark variants or to other theme colors. Then a single SVG icon (light variant) can be used for dark themes too. IntelliJ Platform uses this mechanism to allow themes to change IntelliJ Platform icons.
Use the *_DARK
colors only in *_dark.svg
files.
The colors are based on IntelliJ Platform Action icons and Noun icons
These colors may be changed by IntelliJ Platform themes.
You may use these colors also in your application (outside of SVG icons), but do
not use the RGB values defined in this enum.
Instead, use UIManager.getColor( FlatIconColors.ACTIONS_GREY.key )
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FlatIconColors
(int rgb, String key) private
FlatIconColors
(int rgb, String key, boolean light, boolean dark) -
Method Summary
Modifier and TypeMethodDescriptionstatic FlatIconColors
Returns the enum constant of this class with the specified name.static FlatIconColors[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIONS_RED
-
ACTIONS_RED_DARK
-
ACTIONS_YELLOW
-
ACTIONS_YELLOW_DARK
-
ACTIONS_GREEN
-
ACTIONS_GREEN_DARK
-
ACTIONS_BLUE
-
ACTIONS_BLUE_DARK
-
ACTIONS_GREY
-
ACTIONS_GREY_DARK
-
ACTIONS_GREYINLINE
-
ACTIONS_GREYINLINE_DARK
-
OBJECTS_GREY
-
OBJECTS_BLUE
-
OBJECTS_GREEN
-
OBJECTS_YELLOW
-
OBJECTS_YELLOW_DARK
-
OBJECTS_PURPLE
-
OBJECTS_PINK
-
OBJECTS_RED
-
OBJECTS_RED_STATUS
-
OBJECTS_GREEN_ANDROID
-
OBJECTS_BLACK_TEXT
-
-
Field Details
-
rgb
public final int rgb -
key
-
light
public final boolean light -
dark
public final boolean dark
-
-
Constructor Details
-
FlatIconColors
-
FlatIconColors
-
-
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
-