primary
Returns the value of the
primary record component.- Returns:
- the value of the
primaryrecord component
?theme=dark|light; the controller
resolves it via of(java.lang.String) and threads the palette through the builders.
A consumer can override any slot from Java via shell().light(...) /
shell().dark(...) — those land here as a BrandPalette merged over
the built-in LIGHT/DARK constants by of(String, BrandingConfig).
border()border record component.final booleanfaint()faint record component.final inthashCode()muted()muted record component.static Palettestatic Paletteof(String theme,
BrandingConfig branding) theme with the consumer's BrandingConfig overrides
merged in.page()page record component.primary()primary record component.primarySoft record component.rowAlt()rowAlt record component.success()success record component.successSoft record component.surface()surface record component.text()text record component.final StringtoString()o replacing the default; a no-op if empty.Palette record class.page - the value for the page record componentsurface - the value for the surface record componentborder - the value for the border record componenttext - the value for the text record componentmuted - the value for the muted record componentfaint - the value for the faint record componentprimary - the value for the primary record componentprimarySoft - the value for the primarySoft record componentsuccess - the value for the success record componentsuccessSoft - the value for the successSoft record componentrowAlt - the value for the rowAlt record componenttheme with the consumer's BrandingConfig overrides
merged in. Starts from the built-in LIGHT/DARK and replaces only
the slots the app set, so unbranded apps render exactly as before.o replacing the default; a no-op if empty.Objects::equals(Object,Object).page record component.page record componentsurface record component.surface record componentborder record component.border record componenttext record component.text record componentmuted record component.muted record componentfaint record component.faint record componentprimary record component.primary record componentprimarySoft record component.primarySoft record componentsuccess record component.success record componentsuccessSoft record component.successSoft record componentrowAlt record component.rowAlt record component