File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ struct ComponentStyle {
7070 playback_album : Option < Style > ,
7171 playback_genres : Option < Style > ,
7272 playback_metadata : Option < Style > ,
73+ playback_context : Option < Style > ,
7374 playback_progress_bar : Option < Style > ,
7475 playback_progress_bar_unfilled : Option < Style > ,
7576 current_playing : Option < Style > ,
@@ -274,6 +275,14 @@ impl Theme {
274275 . style ( & self . palette )
275276 }
276277
278+ pub fn playback_context ( & self ) -> style:: Style {
279+ self . component_style
280+ . playback_context
281+ . as_ref ( )
282+ . unwrap_or ( & Style :: default ( ) . fg ( StyleColor :: BrightBlack ) )
283+ . style ( & self . palette )
284+ }
285+
277286 pub fn playback_progress_bar ( & self ) -> style:: Style {
278287 self . component_style
279288 . playback_progress_bar
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ fn construct_playback_text(
371371 . clone ( )
372372 } )
373373 . unwrap_or ( String :: from ( "unknown" ) ) ;
374- ( context_name, ui. theme . playback_metadata ( ) )
374+ ( context_name, ui. theme . playback_context ( ) )
375375 }
376376 _ => continue ,
377377 } ;
You can’t perform that action at this time.
0 commit comments