Use background colour for active selection
This commit is contained in:
parent
692b97a783
commit
611bca1c4a
@ -38,13 +38,15 @@ pub fn render<B: Backend>(app: &mut App, frame: &mut Frame<'_, B>) {
|
||||
|
||||
frame.render_stateful_widget(
|
||||
List::new(artists)
|
||||
.highlight_style(Style::default().add_modifier(Modifier::ITALIC))
|
||||
.highlight_symbol(if let Category::Artist = app.get_active_category() {
|
||||
">> "
|
||||
} else {
|
||||
" > "
|
||||
})
|
||||
.style(Style::default().fg(Color::Cyan).bg(Color::Black))
|
||||
.highlight_style(Style::default().bg(
|
||||
if let Category::Artist = app.get_active_category() {
|
||||
Color::DarkGray
|
||||
} else {
|
||||
Color::Black
|
||||
},
|
||||
))
|
||||
.highlight_symbol(">> ")
|
||||
.style(Style::default().fg(Color::White).bg(Color::Black))
|
||||
.block(
|
||||
Block::default()
|
||||
.title(" Artists ")
|
||||
@ -74,13 +76,15 @@ pub fn render<B: Backend>(app: &mut App, frame: &mut Frame<'_, B>) {
|
||||
|
||||
frame.render_stateful_widget(
|
||||
List::new(albums)
|
||||
.highlight_style(Style::default().add_modifier(Modifier::ITALIC))
|
||||
.highlight_symbol(if let Category::Album = app.get_active_category() {
|
||||
">> "
|
||||
} else {
|
||||
" > "
|
||||
})
|
||||
.style(Style::default().fg(Color::Cyan).bg(Color::Black))
|
||||
.highlight_style(Style::default().bg(
|
||||
if let Category::Album = app.get_active_category() {
|
||||
Color::DarkGray
|
||||
} else {
|
||||
Color::Black
|
||||
},
|
||||
))
|
||||
.highlight_symbol(">> ")
|
||||
.style(Style::default().fg(Color::White).bg(Color::Black))
|
||||
.block(
|
||||
Block::default()
|
||||
.title(" Albums ")
|
||||
@ -107,7 +111,7 @@ pub fn render<B: Backend>(app: &mut App, frame: &mut Frame<'_, B>) {
|
||||
Year: {}",
|
||||
album.title, album.year,
|
||||
))
|
||||
.style(Style::default().fg(Color::Cyan).bg(Color::Black))
|
||||
.style(Style::default().fg(Color::White).bg(Color::Black))
|
||||
.block(
|
||||
Block::default()
|
||||
.title(" Album info ")
|
||||
@ -136,13 +140,15 @@ pub fn render<B: Backend>(app: &mut App, frame: &mut Frame<'_, B>) {
|
||||
|
||||
frame.render_stateful_widget(
|
||||
List::new(tracks)
|
||||
.highlight_style(Style::default().add_modifier(Modifier::ITALIC))
|
||||
.highlight_symbol(if let Category::Track = app.get_active_category() {
|
||||
">> "
|
||||
} else {
|
||||
" > "
|
||||
})
|
||||
.style(Style::default().fg(Color::Cyan).bg(Color::Black))
|
||||
.highlight_style(Style::default().bg(
|
||||
if let Category::Track = app.get_active_category() {
|
||||
Color::DarkGray
|
||||
} else {
|
||||
Color::Black
|
||||
},
|
||||
))
|
||||
.highlight_symbol(">> ")
|
||||
.style(Style::default().fg(Color::White).bg(Color::Black))
|
||||
.block(
|
||||
Block::default()
|
||||
.title(" Tracks ")
|
||||
@ -177,7 +183,7 @@ pub fn render<B: Backend>(app: &mut App, frame: &mut Frame<'_, B>) {
|
||||
TrackFormat::Mp3 => "MP3",
|
||||
},
|
||||
))
|
||||
.style(Style::default().fg(Color::Cyan).bg(Color::Black))
|
||||
.style(Style::default().fg(Color::White).bg(Color::Black))
|
||||
.block(
|
||||
Block::default()
|
||||
.title(" Track info ")
|
||||
|
Loading…
Reference in New Issue
Block a user