TerminalTheme class
All colors a TerminalView needs to paint a frame and the bell overlay.
Sliced from TerminalConfig.colors + TerminalConfig.bell.color without
duplicating state — the config remains the source of truth and exposes
this via TerminalConfig.theme.
Constructors
-
TerminalTheme({required int background, required int foreground, required int selection, required List<
int> ansi, required ({int bg, int fg}) searchMatch, required ({int bg, int fg}) searchFocused, required ({int bg, int fg}) hintStart, required int? cursorText, required int? cursorColor, required int bellOverlay}) -
const
Properties
-
ansi
→ List<
int> -
The 16 ANSI colors (length 16): 0..7 normal, 8..15 bright.
final
- background → int
-
Default window background (packed RGB).
final
- bellOverlay → int
-
Full-viewport color that fades in/out on Bell (packed RGB).
final
- cursorColor → int?
-
Cursor fill color.
null= inverse of the cell (alacritty default).final - cursorText → int?
-
Foreground color for text under the cursor.
null= inverse of the cell (alacritty default).final - foreground → int
-
Default foreground / cell text color (packed RGB).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintStart → ({int bg, int fg})
-
Background/foreground pair for hint-start glyphs (vi-mode hints).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchFocused → ({int bg, int fg})
-
Background/foreground pair painted over the focused search match.
final
- searchMatch → ({int bg, int fg})
-
Background/foreground pair painted over non-focused search matches.
final
- selection → int
-
Selection overlay base color (packed RGB; alpha applied at paint time).
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
- defaults → const TerminalTheme
-
Alacritty's stock palette + bell, matching
TerminalConfig.defaults().