diff options
Diffstat (limited to 'src/display/display_color.rs')
-rw-r--r-- | src/display/display_color.rs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/display/display_color.rs b/src/display/display_color.rs new file mode 100644 index 0000000..ae1fd46 --- /dev/null +++ b/src/display/display_color.rs @@ -0,0 +1,43 @@ +/// An abstraction of colors to display. +#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[allow(clippy::exhaustive_enums)] +pub(crate) enum DisplayColor { + /// The color for the break action. + ActionBreak, + /// The color for the drop action. + ActionDrop, + /// The color for the edit action. + ActionEdit, + /// The color for the exec action. + ActionExec, + /// The color for the fixup action. + ActionFixup, + /// The color for the pick action. + ActionPick, + /// The color for the reword action. + ActionReword, + /// The color for the squash action. + ActionSquash, + /// The color for the label action. + ActionLabel, + /// The color for the reset action. + ActionReset, + /// The color for the merge action. + ActionMerge, + /// The color for the merge action. + ActionUpdateRef, + /// The color for added lines in a diff. + DiffAddColor, + /// The color for changed lines in a diff. + DiffChangeColor, + /// The color for removed lines in a diff. + DiffRemoveColor, + /// The color for context lines in a diff. + DiffContextColor, + /// The color for whitespace characters in a diff. + DiffWhitespaceColor, + /// The color for indicator text. + IndicatorColor, + /// The color for the standard text. + Normal, +} |