From e9caa3779ae01fe5998021085f1f983128e8a246 Mon Sep 17 00:00:00 2001 From: Scott Reeves <327943+Cottser@users.noreply.github.com> Date: Wed, 29 Sep 2021 10:03:08 -0400 Subject: [PATCH] Improve contrast in branch popup for selected branch --- CHANGELOG.md | 1 + src/ui/style.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ac8224c06..bee9732374 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 ## Fixed - appropriate error message when pulling deleted remote branch ([#911](https://github.com/extrawurst/gitui/issues/991)) +- improved color contrast in branches popup for light themes ([#922](https://github.com/extrawurst/gitui/issues/922)) ## [0.17.1] - 2021-09-10 diff --git a/src/ui/style.rs b/src/ui/style.rs index 4e8d1ed16a..7892304c7d 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -84,7 +84,11 @@ impl Theme { }; if selected { - branch.patch(Style::default().bg(self.selection_bg)) + branch.patch( + Style::default() + .fg(self.command_fg) + .bg(self.selection_bg), + ) } else { branch }