Enum Class Palette

java.lang.Object
java.lang.Enum<Palette>
io.jenkins.plugins.livewall.Palette
All Implemented Interfaces:
WallOption, Serializable, Comparable<Palette>, Constable

public enum Palette extends Enum<Palette> implements WallOption
Colour schemes for the wall.

The actual colours live in live-wall.css as custom properties under a [data-palette="..."] selector, so a Jenkins administrator can override any of them from the "Theme" / custom CSS of their instance without touching this plugin. Every built-in palette is picked for legibility on a large screen viewed from several metres away: fully saturated fills rather than pastel tints, and ink chosen for contrast against the fill rather than a fixed white.

  • Enum Constant Details

    • VIVID

      public static final Palette VIVID
      Saturated fills on near-black. The default, and the one to beat on a real office TV.
    • NEON

      public static final Palette NEON
      Glowing fills on pure black, for dim rooms.
    • CONTRAST

      public static final Palette CONTRAST
      Maximum contrast, thick edges. Best for a screen across a large open-plan floor.
    • DAYLIGHT

      public static final Palette DAYLIGHT
      Light background, for screens facing a window.
    • COLORSAFE

      public static final Palette COLORSAFE
      Okabe-Ito derived, safe for the common forms of colour blindness.
    • MIDNIGHT

      public static final Palette MIDNIGHT
      Deep, low-glare tones for a screen that stays on overnight.
    • CUSTOM

      public static final Palette CUSTOM
      Colours supplied by the user in the view configuration.
  • Method Details

    • values

      public static Palette[] 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 Palette 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
    • getId

      @NonNull public String getId()
      Description copied from interface: WallOption
      Stable, lowercase, kebab-case id. Persisted in config.xml and emitted into the markup.
      Specified by:
      getId in interface WallOption
    • getDisplayName

      @NonNull public String getDisplayName()
      Description copied from interface: WallOption
      Label shown in the view configuration form, where there is room to explain the choice.
      Specified by:
      getDisplayName in interface WallOption