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'sSWT.INHERIT_DEFAULTmode.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 themarkerDarkrings: 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 Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionborder()Returns the value of theborderrecord component.Returns the value of thecheckerDarkrecord component.Returns the value of thecheckerLightrecord component.Returns the value of thedisabledForegroundrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldBackgroundrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themarkerDarkrecord component.Returns the value of themarkerLightrecord component.Returns the value of thepanelBackgroundrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
ChooserColors
Method Details
toString
hashCode
equals
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 withObjects::equals(Object,Object).panelBackground
Returns the value of thepanelBackgroundrecord component.- Returns:
- the value of the
panelBackgroundrecord component
fieldBackground
Returns the value of thefieldBackgroundrecord component.- Returns:
- the value of the
fieldBackgroundrecord component
border
disabledForeground
Returns the value of thedisabledForegroundrecord component.- Returns:
- the value of the
disabledForegroundrecord component
checkerLight
Returns the value of thecheckerLightrecord component.- Returns:
- the value of the
checkerLightrecord component
checkerDark
Returns the value of thecheckerDarkrecord component.- Returns:
- the value of the
checkerDarkrecord component
markerLight
Returns the value of themarkerLightrecord component.- Returns:
- the value of the
markerLightrecord component
markerDark
Returns the value of themarkerDarkrecord component.- Returns:
- the value of the
markerDarkrecord component