diff options
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 838e52c84..c2045effa 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -145,13 +145,13 @@ void ServersListModel::setVersionString(int index, const std::string &version) class ServersListBox : public ListBox { public: - ServersListBox(ServersListModel *model): - ListBox(model) + ServersListBox(ServersListModel *model) : + ListBox(model), + mHighlightColor(Theme::getThemeColor(Theme::HIGHLIGHT)), + mTextColor(Theme::getThemeColor(Theme::TEXT)), + mNotSupportedColor(Theme::getThemeColor( + Theme::SERVER_VERSION_NOT_SUPPORTED)) { - mHighlightColor = Theme::getThemeColor(Theme::HIGHLIGHT); - mTextColor = Theme::getThemeColor(Theme::TEXT); - mNotSupportedColor = Theme::getThemeColor( - Theme::SERVER_VERSION_NOT_SUPPORTED); } void draw(gcn::Graphics *graphics) |