diff --git a/doc/config b/doc/config index 2641e70f..bd3e47f7 100644 --- a/doc/config +++ b/doc/config @@ -79,6 +79,8 @@ # #song_list_format = "{%a - }{%t}|{$8%f$9}%r{$3(%l)$9}" # +#song_status_format = "{(%l) }{%a - }{%t}|{%f}" +# #song_library_format = "{%n - }{%t}|{%f}" # #tag_editor_album_format = "{(%y) }%b" @@ -109,9 +111,7 @@ # #alternative_header_second_line_format = "{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}" # -## colors are not supported for below veriables -# -#song_status_format = "{(%l) }{%a - }{%t}|{%f}" +## colors are not supported for below variable # #song_window_title_format = "{%a - }{%t}|{%f}" # diff --git a/src/status.cpp b/src/status.cpp index 7f02ae72..80122067 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -458,11 +458,11 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *) tracklength += Song::ShowTime(elapsed); tracklength += "]"; } - *wFooter << XY(0, 1) << wclrtoeol << player_state - << fmtBoldEnd - << Scroller(utf_to_locale_cpy(np.toString(Config.song_status_format)), wFooter->GetWidth()-player_state.length()-tracklength.length(), playing_song_scroll_begin) - << fmtBold - << XY(wFooter->GetWidth()-tracklength.length(), 1) << tracklength; + basic_buffer np_song; + String2Buffer(TO_WSTRING(utf_to_locale_cpy(np.toString(Config.song_status_format))), np_song); + *wFooter << XY(0, 1) << wclrtoeol << player_state << fmtBoldEnd; + np_song.Write(*wFooter, playing_song_scroll_begin, wFooter->GetWidth()-player_state.length()-tracklength.length(), U(" ** ")); + *wFooter << fmtBold << XY(wFooter->GetWidth()-tracklength.length(), 1) << tracklength; } if (!block_progressbar_update) {