DiffColors class final
The colors a diff view uses, from a theme's diffEditor.* and
editorGutter.* colors, with fallbacks for themes that leave them out.
Colors are ARGB integers. Line and word backgrounds are translucent, to
paint over the editor background; the chrome colors are opaque.
Constructors
- DiffColors({required int insertedLine, required int removedLine, required int insertedText, required int removedText, required int inserted, required int removed, required int fileHeader, required int hunkHeader, required int emptySide, required int divider, required int muted})
-
Colors given directly. DiffColors.of reads them from a theme.
const
- DiffColors.of(SyntaxTheme theme)
-
Reads the colors from
theme. A theme without them gets GitHub's green and red, with line backgrounds at half the strength of changed-word backgrounds.factory
Properties
- divider → int
-
Lines between parts, such as the two sides of a split view.
final
- emptySide → int
-
Background of the empty side of a split row.
final
- fileHeader → int
-
Background of a file's header.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hunkHeader → int
-
Background of
@@lines, notices and collapsed unchanged lines.final - inserted → int
-
Accent for additions: markers, counts and status.
final
- insertedLine → int
-
Background of an added line.
final
- insertedText → int
-
Background of the changed words in an added line.
final
- muted → int
-
Text that matters less than code, such as
@@lines and notices.final - removed → int
-
Accent for removals.
final
- removedLine → int
-
Background of a removed line.
final
- removedText → int
-
Background of the changed words in a removed line.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
override