allow overriding selected_tab via theme (#722)

This commit is contained in:
Scott Reeves 2021-05-21 13:35:35 -04:00 committed by Stephan Dilly
parent 0dddc3f66e
commit 01bd7f6621

View File

@ -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,