summaryrefslogtreecommitdiff
path: root/src/server_info.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-10-06 19:04:59 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-10-06 19:05:12 +0200
commitdf9ecabb55e5e8a0703cd3bdc7dd18133baaa0f7 (patch)
tree5ced9872b9972bb31fbf3231a231e259d73ba408 /src/server_info.cpp
parent1f61a083cf2d7141a12704ca3dae3f595d4056e6 (diff)
window: make color/format/border class enums
Diffstat (limited to 'src/server_info.cpp')
-rw-r--r--src/server_info.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/server_info.cpp b/src/server_info.cpp
index 7223a72d..c4ea6658 100644
--- a/src/server_info.cpp
+++ b/src/server_info.cpp
@@ -84,26 +84,26 @@ void ServerInfo::update()
w.clear();
- w << NC::fmtBold << "Version: " << NC::fmtBoldEnd << "0." << Mpd.Version() << ".*\n";
- w << NC::fmtBold << "Uptime: " << NC::fmtBoldEnd;
+ w << NC::Format::Bold << "Version: " << NC::Format::NoBold << "0." << Mpd.Version() << ".*\n";
+ w << NC::Format::Bold << "Uptime: " << NC::Format::NoBold;
ShowTime(w, stats.uptime(), 1);
w << '\n';
- w << NC::fmtBold << "Time playing: " << NC::fmtBoldEnd << MPD::Song::ShowTime(stats.playTime()) << '\n';
+ w << NC::Format::Bold << "Time playing: " << NC::Format::NoBold << MPD::Song::ShowTime(stats.playTime()) << '\n';
w << '\n';
- w << NC::fmtBold << "Total playtime: " << NC::fmtBoldEnd;
+ w << NC::Format::Bold << "Total playtime: " << NC::Format::NoBold;
ShowTime(w, stats.dbPlayTime(), 1);
w << '\n';
- w << NC::fmtBold << "Artist names: " << NC::fmtBoldEnd << stats.artists() << '\n';
- w << NC::fmtBold << "Album names: " << NC::fmtBoldEnd << stats.albums() << '\n';
- w << NC::fmtBold << "Songs in database: " << NC::fmtBoldEnd << stats.songs() << '\n';
+ w << NC::Format::Bold << "Artist names: " << NC::Format::NoBold << stats.artists() << '\n';
+ w << NC::Format::Bold << "Album names: " << NC::Format::NoBold << stats.albums() << '\n';
+ w << NC::Format::Bold << "Songs in database: " << NC::Format::NoBold << stats.songs() << '\n';
w << '\n';
- w << NC::fmtBold << "Last DB update: " << NC::fmtBoldEnd << Timestamp(stats.dbUpdateTime()) << '\n';
+ w << NC::Format::Bold << "Last DB update: " << NC::Format::NoBold << Timestamp(stats.dbUpdateTime()) << '\n';
w << '\n';
- w << NC::fmtBold << "URL Handlers:" << NC::fmtBoldEnd;
+ w << NC::Format::Bold << "URL Handlers:" << NC::Format::NoBold;
for (auto it = itsURLHandlers.begin(); it != itsURLHandlers.end(); ++it)
w << (it != itsURLHandlers.begin() ? ", " : " ") << *it;
w << "\n\n";
- w << NC::fmtBold << "Tag Types:" << NC::fmtBoldEnd;
+ w << NC::Format::Bold << "Tag Types:" << NC::Format::NoBold;
for (auto it = itsTagTypes.begin(); it != itsTagTypes.end(); ++it)
w << (it != itsTagTypes.begin() ? ", " : " ") << *it;