summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorLuigi Clemente <luigi.clemente@gsquare.it>2022-08-30 14:03:35 +0200
committerGitHub <noreply@github.com>2022-08-30 14:03:35 +0200
commitbacf81f6d6fe4a61198643ea6964186d384bfebb (patch)
treea0191952e1494a1c1cb339c5703083f9623531e0 /src/ui
parentf4f560ce5fd369d314ad6b8914c08ff88b519afa (diff)
Improve UI selection and command bar (#1299)
* Added new color for commands bar * Made commit list item and file tree item fill the entire row
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/style.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/style.rs b/src/ui/style.rs
index fdc2d95f..2cc9a166 100644
--- a/src/ui/style.rs
+++ b/src/ui/style.rs
@@ -23,6 +23,8 @@ pub struct Theme {
#[serde(with = "Color")]
selection_bg: Color,
#[serde(with = "Color")]
+ cmdbar_bg: Color,
+ #[serde(with = "Color")]
cmdbar_extra_lines_bg: Color,
#[serde(with = "Color")]
disabled_fg: Color,
@@ -220,7 +222,7 @@ impl Theme {
Style::default().fg(self.disabled_fg)
}
.bg(if line == 0 {
- self.selection_bg
+ self.cmdbar_bg
} else {
self.cmdbar_extra_lines_bg
})
@@ -323,6 +325,7 @@ impl Default for Theme {
selected_tab: Color::Reset,
command_fg: Color::White,
selection_bg: Color::Blue,
+ cmdbar_bg: Color::Reset,
cmdbar_extra_lines_bg: Color::Blue,
disabled_fg: Color::DarkGray,
diff_line_add: Color::Green,