make progressbar look customizable

This commit is contained in:
Andrzej Rybczak
2009-08-26 03:25:06 +02:00
parent 8c3760111d
commit d92d7779e2
6 changed files with 16 additions and 4 deletions

View File

@@ -251,6 +251,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.new_header_first_line = "{$b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b}";
conf.new_header_second_line = "{{{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}}";
conf.browser_playlist_prefix << clRed << "(playlist)" << clEnd << ' ';
conf.progressbar = "=>";
conf.pattern = "%n - %t";
conf.selected_item_prefix << clMagenta;
conf.selected_item_suffix << clEnd;
@@ -621,6 +622,11 @@ void ReadConfiguration(ncmpcpp_config &conf)
String2Buffer(v, conf.browser_playlist_prefix);
}
}
else if (cl.find("progressbar_look") != std::string::npos)
{
if (v.length() == 2)
conf.progressbar = v;
}
else if (cl.find("default_tag_editor_pattern") != std::string::npos)
{
if (!v.empty())