Package com.formdev.flatlaf
Enum FlatIconColors
- java.lang.Object
-
- java.lang.Enum<FlatIconColors>
-
- com.formdev.flatlaf.FlatIconColors
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FlatIconColors>
public enum FlatIconColors extends java.lang.Enum<FlatIconColors>
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, useUIManager.getColor( FlatIconColors.ACTIONS_GREY.key )
.
-
-
Enum Constant Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
FlatIconColors(int rgb, java.lang.String key)
private
FlatIconColors(int rgb, java.lang.String key, boolean light, boolean dark)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlatIconColors
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FlatIconColors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIONS_RED
public static final FlatIconColors ACTIONS_RED
-
ACTIONS_RED_DARK
public static final FlatIconColors ACTIONS_RED_DARK
-
ACTIONS_YELLOW
public static final FlatIconColors ACTIONS_YELLOW
-
ACTIONS_YELLOW_DARK
public static final FlatIconColors ACTIONS_YELLOW_DARK
-
ACTIONS_GREEN
public static final FlatIconColors ACTIONS_GREEN
-
ACTIONS_GREEN_DARK
public static final FlatIconColors ACTIONS_GREEN_DARK
-
ACTIONS_BLUE
public static final FlatIconColors ACTIONS_BLUE
-
ACTIONS_BLUE_DARK
public static final FlatIconColors ACTIONS_BLUE_DARK
-
ACTIONS_GREY
public static final FlatIconColors ACTIONS_GREY
-
ACTIONS_GREY_DARK
public static final FlatIconColors ACTIONS_GREY_DARK
-
ACTIONS_GREYINLINE
public static final FlatIconColors ACTIONS_GREYINLINE
-
ACTIONS_GREYINLINE_DARK
public static final FlatIconColors ACTIONS_GREYINLINE_DARK
-
OBJECTS_GREY
public static final FlatIconColors OBJECTS_GREY
-
OBJECTS_BLUE
public static final FlatIconColors OBJECTS_BLUE
-
OBJECTS_GREEN
public static final FlatIconColors OBJECTS_GREEN
-
OBJECTS_YELLOW
public static final FlatIconColors OBJECTS_YELLOW
-
OBJECTS_YELLOW_DARK
public static final FlatIconColors OBJECTS_YELLOW_DARK
-
OBJECTS_PURPLE
public static final FlatIconColors OBJECTS_PURPLE
-
OBJECTS_PINK
public static final FlatIconColors OBJECTS_PINK
-
OBJECTS_RED
public static final FlatIconColors OBJECTS_RED
-
OBJECTS_RED_STATUS
public static final FlatIconColors OBJECTS_RED_STATUS
-
OBJECTS_GREEN_ANDROID
public static final FlatIconColors OBJECTS_GREEN_ANDROID
-
OBJECTS_BLACK_TEXT
public static final FlatIconColors OBJECTS_BLACK_TEXT
-
-
Method Detail
-
values
public static FlatIconColors[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FlatIconColors c : FlatIconColors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlatIconColors valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-