Enum Class FlatIconColors

java.lang.Object
java.lang.Enum<FlatIconColors>
com.formdev.flatlaf.FlatIconColors
All Implemented Interfaces:
Serializable, Comparable<FlatIconColors>, Constable

public enum FlatIconColors extends 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, use UIManager.getColor( FlatIconColors.ACTIONS_GREY.key ).

  • Enum Constant Details

  • Field Details

    • rgb

      public final int rgb
    • key

      public final String key
    • light

      public final boolean light
    • dark

      public final boolean dark
  • Constructor Details

    • FlatIconColors

      private FlatIconColors(int rgb, String key)
    • FlatIconColors

      private FlatIconColors(int rgb, String key, boolean light, boolean dark)
  • Method Details

    • values

      public static FlatIconColors[] 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 FlatIconColors 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