RoleRanges class final
Role ranges for one brightness (research §5.3).
Constructors
- RoleRanges({required RoleRange background, required IntRange surfaceOffsetMilli, required ChromaRange surfaceChroma, required RoleRange digit, required ChromaRange digitDuotoneChroma, required RoleRange function, required RoleRange operator, required IntRange operatorMonochromeL, required RoleRange equals, required int labelStartLMilli, required int labelMaxChromaMilli, required ChromaRange accentChroma, required int minDigitAboveBackgroundMilli, int minDigitBelowBackgroundMilli = 0, int minFunctionBelowDigitMilli = 0, IntRange? accentCuspOffsetMilli, IntRange? accentCuspClampMilli})
-
const
Properties
- accentChroma → ChromaRange
-
final
- accentCuspClampMilli → IntRange?
-
Clamp for cusp-relative accent lightness.
final
- accentCuspOffsetMilli → IntRange?
-
When set (engine v2 NeoPOP), operator and
=lightness is drawn as this offset from the hue's chroma cusp (the lightness of its most saturated colour) and clamped to accentCuspClampMilli, so every hue stays vivid instead of washing out to a pastel.final - background → RoleRange
-
final
- digit → RoleRange
-
final
- digitDuotoneChroma → ChromaRange
-
Digit chroma under the duotone scheme (every surface tinted).
final
- equals → RoleRange
-
final
- function → RoleRange
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- labelMaxChromaMilli → int
-
Label chroma ceiling × 1000.
final
- labelStartLMilli → int
-
Label search start lightness × 1000 (solved afterwards).
final
- minDigitAboveBackgroundMilli → int
-
Digit face lightness must exceed background by this (× 1000; dark
themes keep keys visible). 0 = no constraint.
final
- minDigitBelowBackgroundMilli → int
-
Light themes: digit faces at least this far (L × 1000) below the
background, so keys never vanish into it (engine v2; 0 = off).
final
- minFunctionBelowDigitMilli → int
-
Light themes: function faces at least this far below the digit faces
(engine v2; 0 = off).
final
- operator → RoleRange
-
final
- operatorMonochromeL → IntRange
-
Operator lightness under the monochrome scheme.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surfaceChroma → ChromaRange
-
final
- surfaceOffsetMilli → IntRange
-
Display surface lightness offset from the background × 1000 (signed).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited