Record Class ChooserColors

java.lang.Object
java.lang.Record
com.iizigo.prop.editor.color.swt.ChooserColors
Record Components:
panelBackground - The background of the chooser's own panels (the chooser and the tab pages, Composite subclasses): the theme's widget background (ApplicationUI.widgetBackground). Eclipse's theme styles a widget by its exact class, so a Composite subclass of ours would keep SWT's default otherwise (measured: light gray pages in a dark tab folder); a plain Composite, such as the chooser's strip, is restyled by Eclipse after its creation and is left to it. A child of a panel without a background of its own (SWT's Scale: Eclipse's theme styles it only under a plain Composite) shows the panel's, through the panel's SWT.INHERIT_DEFAULT mode.
fieldBackground - The background of the swatch grids and behind the palette swatches: the theme's field background (ApplicationUI.background).
border - The frame of the preview and of a palette swatch, and the shade lines of a swatch cell (ApplicationUI.border).
disabledForeground - The cross of an unresolved palette value (ApplicationUI.disabledForeground).
checkerLight - The light square of the transparency checkerboard (ApplicationUI.background).
checkerDark - The dark square of the transparency checkerboard, standing out palely from the light one (ApplicationUI.paleLine).
markerLight - The light ring of the diagram marker, drawn over the color plane between the markerDark rings: a contrast pair over any color, the same in both themes (ApplicationUI.white).
markerDark - The dark rings of the diagram marker (ApplicationUI.black).

public record ChooserColors(Color panelBackground, Color fieldBackground, Color border, Color disabledForeground, Color checkerLight, Color checkerDark, Color markerLight, Color markerDark) extends Record
The theme colors the SWT color chooser paints its own surfaces with (CC-FIX-COLOR-CHOOSER-DARK, 2026-10-19): roles, not values. The Designer's environment maps every role to a named member of ApplicationUI, so the chooser follows the light and the dark Eclipse theme; a test or a rig supplies its own colors. The chooser owns none of them and disposes of none. The color samples themselves - the swatch cells, the preview's colors, the palette swatches, the diagram image - are the real colors and are not here.
Author:
Christopher Mindus
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • panelBackground

      public Color panelBackground()
      Returns the value of the panelBackground record component.
      Returns:
      the value of the panelBackground record component
    • fieldBackground

      public Color fieldBackground()
      Returns the value of the fieldBackground record component.
      Returns:
      the value of the fieldBackground record component
    • border

      public Color border()
      Returns the value of the border record component.
      Returns:
      the value of the border record component
    • disabledForeground

      public Color disabledForeground()
      Returns the value of the disabledForeground record component.
      Returns:
      the value of the disabledForeground record component
    • checkerLight

      public Color checkerLight()
      Returns the value of the checkerLight record component.
      Returns:
      the value of the checkerLight record component
    • checkerDark

      public Color checkerDark()
      Returns the value of the checkerDark record component.
      Returns:
      the value of the checkerDark record component
    • markerLight

      public Color markerLight()
      Returns the value of the markerLight record component.
      Returns:
      the value of the markerLight record component
    • markerDark

      public Color markerDark()
      Returns the value of the markerDark record component.
      Returns:
      the value of the markerDark record component