Skip to content

Commit c2e08f6

Browse files
author
Stephan Dilly
committed
make danger color specific
1 parent 9d29647 commit c2e08f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ui/style.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ pub struct Theme {
4040
commit_time: Color,
4141
#[serde(with = "ColorDef")]
4242
commit_author: Color,
43+
#[serde(with = "ColorDef")]
44+
danger_fg: Color,
4345
}
4446

4547
impl Theme {
@@ -139,7 +141,7 @@ impl Theme {
139141
}
140142

141143
pub fn text_danger(&self) -> Style {
142-
Style::default().fg(self.diff_line_delete)
144+
Style::default().fg(self.danger_fg)
143145
}
144146

145147
pub fn toolbar(&self, enabled: bool) -> Style {
@@ -227,6 +229,7 @@ impl Default for Theme {
227229
commit_hash: Color::Magenta,
228230
commit_time: Color::Blue,
229231
commit_author: Color::Green,
232+
danger_fg: Color::Red,
230233
}
231234
}
232235
}

0 commit comments

Comments
 (0)