Skip to content

Commit 07f5d69

Browse files
star-szrStephan Dilly
authored and
Stephan Dilly
committed
Improve contrast in branch popup for selected branch
1 parent b73b200 commit 07f5d69

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## Fixed
1111
- appropriate error message when pulling deleted remote branch ([#911](https://github.com/extrawurst/gitui/issues/991))
12+
- improved color contrast in branches popup for light themes ([#922](https://github.com/extrawurst/gitui/issues/922))
1213

1314
## [0.17.1] - 2021-09-10
1415

src/ui/style.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ impl Theme {
8484
};
8585

8686
if selected {
87-
branch.patch(Style::default().bg(self.selection_bg))
87+
branch.patch(
88+
Style::default()
89+
.fg(self.command_fg)
90+
.bg(self.selection_bg),
91+
)
8892
} else {
8993
branch
9094
}

0 commit comments

Comments
 (0)