diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c883dd6..06d86bd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - changed hotkeys for selecting stage/workdir (**Note:** use `[w]`/`[s]` to change between workdir and stage) and added hotkeys (`[1234]`) to switch to tabs directly ([#92](https://github.com/extrawurst/gitui/issues/92)) - `arrow-up`/`down` on bottom/top of status file list switches focus ([#105](https://github.com/extrawurst/gitui/issues/105)) +- highlight tags in revlog better ### Added - New `Stage all [a]`/`Unstage all [a]` in changes lists ([#82](https://github.com/extrawurst/gitui/issues/82)) diff --git a/src/components/commitlist.rs b/src/components/commitlist.rs index 5de76975..60bc8a61 100644 --- a/src/components/commitlist.rs +++ b/src/components/commitlist.rs @@ -211,7 +211,7 @@ impl CommitList { } else { String::from("") }), - theme.tab(true).bg(theme.text(true, selected).bg), + theme.tags(selected), )); txt.push(splitter); diff --git a/src/ui/style.rs b/src/ui/style.rs index 64948b17..540da03d 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -72,6 +72,17 @@ impl Theme { } } + pub fn tags(&self, selected: bool) -> Style { + Style::default() + .fg(self.selected_tab) + .modifier(Modifier::BOLD) + .bg(if selected { + self.selection_bg + } else { + Color::Reset + }) + } + pub fn text(&self, enabled: bool, selected: bool) -> Style { match (enabled, selected) { (false, _) => Style::default().fg(self.disabled_fg),