StudioColors class
Studio's colours by role.
The metal is chrome: chassis, panel and bar (each with its lower tone), printed with legend and legendMuted, cut with groove. The glass is content: display with onDisplay, and the readout windows: by night dark glass whose figures glow in indicator, by day pale glass lit amber from behind, its figures readoutLit. indicator is the one accent, the light of a lamp, a backlit key or a lit legend (litLegend where a lit word must still read on the metal by day). danger is the meaning of a live recording or a failure, nothing else.
- Mixed-in types
- Available extensions
- Annotations
Constructors
- StudioColors({required Brightness brightness, required Color chassis, required Color chassisLow, required Color panel, required Color panelLow, required Color bar, required Color barLow, required Color legend, required Color legendMuted, required Color groove, required Color edgeLight, required Color display, required Color displayLow, required Color onDisplay, required Color onDisplayMuted, required Color displayLine, required Color readout, required Color readoutLow, required Color key, required Color keyLow, required Color onKey, required Color disabled, required Color slot, required Color cap, required Color capLow, required Color indicator, required Color onIndicator, required Color litLegend, required Color lampOff, required Color danger, required Color onDanger, required Color dangerLegend, required Color focusRing, required Color shadow})
-
Colours given one by one; StudioColors.light and StudioColors.dark
are the look's own.
const
- StudioColors.dark()
-
The same gear in low light: graphite panels, dark glass displays with
warm-white words, legends faintly backlit.
const
- StudioColors.light()
-
The gear in a bright room: light silver anodised panels, pale warm
glass displays with graphite words, readout windows of pale glass lit
amber from behind (as a backlit LCD is by day).
const
Properties
- bar → Color
-
The faceplate of the top bar and the bottom bar.
final
- barLow → Color
-
The bar's lower tone.
final
- brightness → Brightness
-
Bright room or low light.
final
- cap → Color
-
A toggle's or a fader's metal cap at its top.
final
- capLow → Color
-
The cap's lower tone.
final
- chassis → Color
-
The frame round the panels: the page behind everything.
final
- chassisLow → Color
-
The chassis's lower tone (its gradient falls to it).
final
- danger → Color
-
A live recording, a failure, a destructive key's light.
final
- dangerLegend → Color
-
A destructive legend on the metal, at 4.5:1.
final
- disabled → Color
-
A legend that cannot be pressed.
final
- display → Color
-
A glass display's face at its top.
final
- displayFace → StudioFace
-
Available on StudioColors, provided by the StudioFaces extension
A glass display pane.no setter - displayLine → Color
-
A rule between rows on a display.
final
- displayLow → Color
-
The display's lower tone.
final
- edgeLight → Color
-
The light catching a top edge (and a groove's lower lip).
final
- focusRing → Color
-
The keyboard focus ring, at 3:1 on the metal.
final
- glow → Color
-
The glow round a lit lamp or a backlit legend.
no setter
- groove → Color
-
A machined groove's dark line.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- indicator → Color
-
The indicator light: a lit lamp, a backlit key, a glowing readout. The
one accent.
final
- key → Color
-
A key's cap at its top.
final
- keyFace → StudioFace
-
Available on StudioColors, provided by the StudioFaces extension
A key's cap at rest.no setter - keyLow → Color
-
The key's lower tone.
final
- lampEdge → Color
-
An unlit lamp's edge by night: the bezel round its dark glass, an
unlit star's outline. lampOff lifted toward legend until it stands
a little over 3:1 on key, the lightest metal a lamp is set in (more
on a panel, the bar or a display), so an unlit lamp still reads as a
lamp: the 3:1 WCAG asks of a part's outline, with room for the light
across the metal. A lit lamp covers it.
no setter
- lampOff → Color
-
A lamp that is off: a dark dimple.
final
- legend → Color
-
Words printed on the metal.
final
- legendMuted → Color
-
Secondary print on the metal, at 4.5:1 on panelLow.
final
- litKey → Color
-
The main key's cap: graphite in both rooms, so its legend can be lit.
(Amber means on: the main key is not filled with it; its legend and
its lamp are lit.)
no setter
- litKeyFace → StudioFace
-
Available on StudioColors, provided by the StudioFaces extension
The main key's cap: brushed graphite, its legend lit (the key itself gives off no light: amber fills nothing that is not lit).no setter - litKeyLow → Color
-
The main key's lower tone.
no setter
- litLegend → Color
-
A lit legend on the metal or a display: indicator by night, a deeper
amber by day that still reads at 4.5:1.
final
- litReadout → bool
-
Whether the readout windows are pale glass lit from behind (by day)
rather than dark glass (by night), read off readout itself.
no setter
- onDanger → Color
-
Words on danger.
final
- onDisplay → Color
-
Words on a display.
final
- onDisplayMuted → Color
-
Supporting words on a display, at 4.5:1 on displayLow.
final
- onIndicator → Color
-
Words on a lit key's cap.
final
- onKey → Color
-
A key's legend.
final
- onLitKey → Color
-
The main key's lit legend: the indicator, a little whiter, and
lightened further until it reads on litKey at 4.5:1 (an app's own
indicator included).
no setter
- onLitKeyDanger → Color
-
A destructive main key's lit legend: red light, at 4.5:1 on litKey.
no setter
- onLitKeyOff → Color
-
The main key's legend with no power: unlit, still read at 4.5:1.
no setter
- onReadout → Color
-
Words on a readout window's glass: warm white on the dark glass, a warm
near-black on the lit glass.
no setter
- onReadoutMuted → Color
-
Supporting words on a readout window's glass, at 4.5:1.
no setter
- panel → Color
-
A panel module's metal, lit from the top.
final
- panelFace → StudioFace
-
Available on StudioColors, provided by the StudioFaces extension
A panel module's metal.no setter - panelLow → Color
-
The panel's lower tone.
final
- readout → Color
-
A readout window's glass: by night dark, by day pale and lit from
behind by the indicator.
final
- readoutDim → Color
-
A dimmer light on a readout (a third trace): the indicator half-way to
the glass, kept at 3:1 on it.
no setter
- readoutFace → StudioFace
-
Available on StudioColors, provided by the StudioFaces extension
A readout window's glass: dark by night, lit from behind by day.no setter - readoutLit → Color
-
A readout's lit figures and segments: indicator, glowing, on the dark
glass (lifted until it reads there at 4.5:1, for a brand too dim); on
the lit glass the indicator deepened until it reads there at 4.5:1, as
a backlit LCD's figures do.
no setter
- readoutLow → Color
-
The readout's lower tone.
final
- recessFace → StudioFace
-
Available on StudioColors, provided by the StudioFaces extension
A recess that holds keys (a bank, a rail, a slot).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrim → Color
-
The dimming over a page under a dialog or a sheet: the room's lights
lowered.
no setter
- shadow → Color
-
Every cast and inner shadow.
final
- slot → Color
-
The dark slot a toggle's or a fader's cap rides in.
final
Methods
-
copyWith(
{Color? chassis, Color? chassisLow, Color? panel, Color? panelLow, Color? bar, Color? barLow, Color? legend, Color? legendMuted, Color? display, Color? displayLow, Color? onDisplay, Color? onDisplayMuted, Color? readout, Color? readoutLow, Color? key, Color? keyLow, Color? onKey, Color? indicator, Color? onIndicator, Color? litLegend, Color? focusRing, Color? danger}) → StudioColors - A copy with the given colours replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readoutGlow(
Color light, {double alpha = 0.55, double blur = 6}) → List< Shadow> - The glow round a readout's lit figures: on the dark glass only; the lit glass is lit from behind, and its figures stay sharp.
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
StudioColors a, StudioColors b, double t) → StudioColors -
Between
aandbatt. -
wordsOn(
Color fill) → Color -
Black or white words, whichever reads better on
fill.