diff options
author | Ben S <ogham@bsago.me> | 2015-05-10 17:57:21 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-05-10 17:57:21 +0100 |
commit | d9319c48b427881a197d96a15b941534646f42ac (patch) | |
tree | 0f6a5bfd26a7fb2a8b017ba542026bbc68cc14bb /src/colours.rs | |
parent | 5a37d1b6b16e72c0661d3a465ab1c56f458384d8 (diff) |
Do the same for the Git column
Diffstat (limited to 'src/colours.rs')
-rw-r--r-- | src/colours.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/colours.rs b/src/colours.rs index c0619b9..60465f7 100644 --- a/src/colours.rs +++ b/src/colours.rs @@ -13,6 +13,7 @@ pub struct Colours { pub size: Size, pub users: Users, pub links: Links, + pub git: Git, pub punctuation: Style, pub date: Style, @@ -82,6 +83,15 @@ pub struct Links { pub multi_link_file: Style, } +#[derive(Clone, Copy, Debug, Default, PartialEq)] +pub struct Git { + pub new: Style, + pub modified: Style, + pub deleted: Style, + pub renamed: Style, + pub typechange: Style, +} + impl Colours { pub fn plain() -> Colours { Colours::default() @@ -138,6 +148,14 @@ impl Colours { multi_link_file: Red.on(Yellow), }, + git: Git { + new: Green.normal(), + modified: Blue.normal(), + deleted: Red.normal(), + renamed: Yellow.normal(), + typechange: Purple.normal(), + }, + punctuation: Fixed(244).normal(), date: Blue.normal(), inode: Purple.normal(), |