mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
make danger color specific
This commit is contained in:
parent
9d296479ab
commit
c2e08f629a
1 changed files with 4 additions and 1 deletions
|
|
@ -40,6 +40,8 @@ pub struct Theme {
|
|||
commit_time: Color,
|
||||
#[serde(with = "ColorDef")]
|
||||
commit_author: Color,
|
||||
#[serde(with = "ColorDef")]
|
||||
danger_fg: Color,
|
||||
}
|
||||
|
||||
impl Theme {
|
||||
|
|
@ -139,7 +141,7 @@ impl Theme {
|
|||
}
|
||||
|
||||
pub fn text_danger(&self) -> Style {
|
||||
Style::default().fg(self.diff_line_delete)
|
||||
Style::default().fg(self.danger_fg)
|
||||
}
|
||||
|
||||
pub fn toolbar(&self, enabled: bool) -> Style {
|
||||
|
|
@ -227,6 +229,7 @@ impl Default for Theme {
|
|||
commit_hash: Color::Magenta,
|
||||
commit_time: Color::Blue,
|
||||
commit_author: Color::Green,
|
||||
danger_fg: Color::Red,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue