settings: make progressbar more customizable (elapsed time part color, boldness)

This commit is contained in:
Andrzej Rybczak
2012-07-16 00:00:20 +02:00
parent 27a0dc958f
commit 4475902eb9
6 changed files with 36 additions and 8 deletions

View File

@@ -1304,7 +1304,6 @@ int main(int argc, char **argv)
wFooter->SetTimeout(ncmpcpp_window_timeout);
SeekingInProgress = 1;
*wFooter << fmtBold;
while (Keypressed(input, Key.SeekForward) || Keypressed(input, Key.SeekBackward))
{
TraceMpdStatus();
@@ -1326,6 +1325,7 @@ int main(int argc, char **argv)
songpos = 0;
}
*wFooter << fmtBold;
std::string tracklength;
if (Config.new_design)
{
@@ -1356,10 +1356,10 @@ int main(int argc, char **argv)
tracklength += "]";
*wFooter << XY(wFooter->GetWidth()-tracklength.length(), 1) << tracklength;
}
*wFooter << fmtBoldEnd;
DrawProgressbar(songpos, Mpd.GetTotalTime());
wFooter->Refresh();
}
*wFooter << fmtBoldEnd;
SeekingInProgress = 0;
Mpd.Seek(songpos);
UpdateStatusImmediately = 1;