CarpenterSelectionTheme class final

Resolves selection controls from semantic color role, selected state, and WidgetState values.

Annotations

Constructors

CarpenterSelectionTheme(Map<SelectionColorRole, CarpenterSelectionPalette> _palettes, {required Color foreground, required Color supporting, required Color disabledForeground, required Color background, required Color backgroundHovered, required Color border, required Color borderHovered, required Color disabledBackground, required Color disabledBorder, required Color disabledSelected, required Color disabledMark})
Creates the selection theme from role palettes plus shared unselected and disabled colors.
const

Properties

background Color
Unselected enabled background.
final
backgroundHovered Color
Unselected background while hovered.
final
border Color
Unselected enabled border.
final
borderHovered Color
Unselected border while hovered.
final
disabledBackground Color
Disabled unselected background.
final
disabledBorder Color
Disabled border.
final
disabledForeground Color
Foreground used for disabled labels and supporting text.
final
disabledMark Color
Disabled selection mark color.
final
disabledSelected Color
Disabled selected background/border.
final
foreground Color
Default enabled selection-label foreground.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supporting Color
Default enabled supporting-label foreground.
final

Methods

copyWith({Map<SelectionColorRole, CarpenterSelectionPalette>? palettes, Color? foreground, Color? supporting, Color? disabledForeground, Color? background, Color? backgroundHovered, Color? border, Color? borderHovered, Color? disabledBackground, Color? disabledBorder, Color? disabledSelected, Color? disabledMark}) CarpenterSelectionTheme
Returns a selection theme with supplied role palettes merged over the current palette map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
palette(SelectionColorRole role) CarpenterSelectionPalette
Resolves selection colors from semantic role, whether the control is selected, and interaction states. Returns the palette currently assigned to the semantic selection role.
resolve({required SelectionColorRole role, required bool selected, required Set<WidgetState> states}) CarpenterSelectionStyle
Resolves selection colors for semantic role, selected state, and interaction state.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited