workaround for counting item length, will fix it later

master
unknown 18 years ago
parent ea3778da7c
commit bb10209124
  1. 2
      examples/ncmpcpprc
  2. 5
      src/menu.cpp
  3. 2
      src/settings.cpp

@ -57,7 +57,7 @@
## - 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}"
#

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

@ -27,7 +27,7 @@ using std::ifstream;
void DefaultConfiguration(ncmpcpp_config &conf)
{
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_window_title_format = "{%a - }{%t}|{%f}";
conf.song_library_format = "{%n - }{%t}|{%f}";

Loading…
Cancel
Save