Palette class final
Every colour role of a theme, as final quantised ARGB (what the guardrails checked).
- Annotations
Constructors
- Palette({required int background, required int surface, required int displayText, required int previewText, required int error, required int caret, required int focusRing, required int accent, required KeyColors digit, required KeyColors operator, required KeyColors equals, required KeyColors function, required int shadow, required int highlight, required int seedColor, int? lcdGhost})
-
const
- Palette.fromJson(Object? json)
-
factory
Properties
- accent → int
-
Theme accent (chips, highlights; ≥ 3:1 where it carries meaning).
Vaporwave gives it a role of its own (the title bar's end colour,
vaporwave.dart).
final
- background → int
-
Calculator background behind display and keypad.
final
- caret → int
-
Expression caret (≥ 3:1 on surface).
final
- digit → KeyColors
-
Digits,
.,±.final - displayText → int
-
Expression and result text (≥ 4.5:1 on surface).
final
- equals → KeyColors
-
=.final - error → int
-
Error message text (≥ 4.5:1 on surface).
final
- focusRing → int
-
Keyboard focus ring (≥ 3:1 against background).
final
- function → KeyColors
-
Function keys: AC/⌫,
( ),%, memory, modes.final - hashCode → int
-
The hash code for this object.
no setteroverride
- highlight → int
-
Light neumorphic shadow / specular highlight (may be translucent).
Reused as family artwork: Claymorphism's top-left highlight, Y2K's
specular white, Paper & ink's wash, Vaporwave's title-bar start,
Bauhaus's display quarter-disc (see each family's library doc).
final
- lcdGhost → int?
-
Unlit ("ghost") segments of a 7-segment LCD / VFD display (Retro):
faintly visible on surface (the LCD panel), at most 1.3:1 against
it so they never compete with lit segments. Null for families
without a segment display; serialised only when set, so every other
theme's canonical JSON and stable hash are unchanged.
final
- operator → KeyColors
-
+ − × ÷and other binary operators.final - previewText → int
-
Live preview and indicators (≥ 3:1 on surface; we target 4.5).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seedColor → int
-
The colour the palette was derived from (M3E feeds it to
ColorScheme.fromSeed; wallpaper variant = device colour).final - shadow → int
-
Hard shadow / dark neumorphic shadow colour (may be translucent).
Reused as family artwork ink: Paper & ink's ink, Cyberpunk's panel
scanlines, Vaporwave's key and window lines, Bauhaus's display rule
(see each family's library doc).
final
- surface → int
-
Display surface (the solid-enough backing behind display text).
final
Methods
-
copyWith(
{int? background, int? surface, int? displayText, int? previewText, int? error, int? caret, int? focusRing, int? accent, KeyColors? digit, KeyColors? operator, KeyColors? equals, KeyColors? function, int? shadow, int? highlight, int? seedColor, int? lcdGhost}) → Palette -
keyColors(
KeyGroup group) → KeyColors - Key colours for a role group.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override