DevConsolePalette class
The colours the console chrome and tabs paint with.
Deliberately small: the panels need a background, a raised surface, a divider and three levels of text emphasis. Accent colours (severity reds, status greens) are semantic and stay the same in both themes.
- Annotations
Constructors
- DevConsolePalette({required Color background, required Color appBar, required Color surface, required Color divider, required Color onSurface, required Color subtle, required Color faint, required Color scrim})
-
Creates a palette. Every color is required — there is no default look
to fall back on, by design, so a new theme can't ship half-styled.
const
Properties
- appBar → Color
-
The app bar's background.
final
- background → Color
-
The console's base background, behind every tab.
final
- divider → Color
-
Line color for dividers and borders.
final
- faint → Color
-
Tertiary text/icon color, for placeholders and disabled-looking content.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onSurface → Color
-
Primary text/icon color, for the most prominent content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrim → Color
-
Overlay color for dimming content behind a config panel or dialog.
final
- subtle → Color
-
Secondary text color, for less prominent labels.
final
- surface → Color
-
Background for raised elements: cards, selected list tiles, panels.
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
Constants
- dark → const DevConsolePalette
- The palette used by DevConsoleTheme.dark.
- light → const DevConsolePalette
- The palette used by DevConsoleTheme.light.