mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 00:14:52 +03:00
allow overriding selected_tab via theme (#722)
This commit is contained in:
parent
0dddc3f66e
commit
01bd7f6621
@ -92,7 +92,9 @@ impl Theme {
|
||||
|
||||
pub fn tab(&self, selected: bool) -> Style {
|
||||
if selected {
|
||||
self.text(true, false).add_modifier(Modifier::UNDERLINED)
|
||||
self.text(true, false)
|
||||
.fg(self.selected_tab)
|
||||
.add_modifier(Modifier::UNDERLINED)
|
||||
} else {
|
||||
self.text(false, false)
|
||||
}
|
||||
@ -304,7 +306,7 @@ impl Theme {
|
||||
impl Default for Theme {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
selected_tab: Color::Yellow,
|
||||
selected_tab: Color::Reset,
|
||||
command_fg: Color::White,
|
||||
selection_bg: Color::Blue,
|
||||
cmdbar_extra_lines_bg: Color::Blue,
|
||||
|
Loading…
Reference in New Issue
Block a user