workaround for counting item length, will fix it later

This commit is contained in:
unknown
2008-08-15 21:52:19 +02:00
parent ea3778da7c
commit bb10209124
3 changed files with 4 additions and 5 deletions

View File

@@ -57,7 +57,7 @@
## - white ## - white
## ##
# #
#song_list_format = "[green](%l)[/green] {%a - }{%t}|{[white]%f[/white]}" #song_list_format = "[green](%l)[/green] {%a - }{%t}|{[white]%f}"
# #
#song_status_format = "(%l) {%a - }{%t}|{%f}" #song_status_format = "(%l) {%a - }{%t}|{%f}"
# #

View File

@@ -368,12 +368,11 @@ void Menu::Refresh(bool redraw_whole_window)
line++; line++;
if (*it == itsHighlight && itsHighlightEnabled) if (*it == itsHighlight && itsHighlightEnabled)
{
Reverse(0); Reverse(0);
SetColor(itsBaseColor);
}
if (itsOptions[*it]->is_bold) if (itsOptions[*it]->is_bold)
Bold(0); Bold(0);
SetColor(itsBaseColor);
} }
NeedsRedraw.clear(); NeedsRedraw.clear();
wrefresh(itsWindow); wrefresh(itsWindow);

View File

@@ -27,7 +27,7 @@ using std::ifstream;
void DefaultConfiguration(ncmpcpp_config &conf) void DefaultConfiguration(ncmpcpp_config &conf)
{ {
conf.mpd_music_dir = "/var/lib/mpd/music"; conf.mpd_music_dir = "/var/lib/mpd/music";
conf.song_list_format = "[green](%l)[/green] {%a - }{%t}|{[white]%f[/white]}"; conf.song_list_format = "[green](%l)[/green] {%a - }{%t}|{[white]%f}";
conf.song_status_format = "(%l) {%a - }{%t}|{%f}"; conf.song_status_format = "(%l) {%a - }{%t}|{%f}";
conf.song_window_title_format = "{%a - }{%t}|{%f}"; conf.song_window_title_format = "{%a - }{%t}|{%f}";
conf.song_library_format = "{%n - }{%t}|{%f}"; conf.song_library_format = "{%n - }{%t}|{%f}";