diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/avatarlistbox.h | 1 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 372218fe6..fe46feba2 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -48,8 +48,7 @@ AvatarListBox::AvatarListBox(const Widget2 *const widget, ListBox(widget, model, "avatarlistbox.xml"), mShowGender(config.getBoolValue("showgender")), mShowLevel(config.getBoolValue("showlevel")), - mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0), - mHighlightColor(getThemeColor(Theme::HIGHLIGHT)) + mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0) { instances++; @@ -99,13 +98,10 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) AvatarListModel *const model = static_cast<AvatarListModel *const>( mListModel); -// Guild *guild = dynamic_cast<Guild*>(model); - updateAlpha(); - Graphics *const graphics = static_cast<Graphics *const>(gcnGraphics); - mHighlightColor.a = static_cast<int>(mAlpha * 255.0f); +// mHighlightColor.a = static_cast<int>(mAlpha * 255.0f); gcn::Font *const font = getFont(); const int fontHeight = getFont()->getHeight(); diff --git a/src/gui/widgets/avatarlistbox.h b/src/gui/widgets/avatarlistbox.h index 7d283abea..579651d29 100644 --- a/src/gui/widgets/avatarlistbox.h +++ b/src/gui/widgets/avatarlistbox.h @@ -65,7 +65,6 @@ private: bool mShowGender; bool mShowLevel; int mImagePadding; - gcn::Color mHighlightColor; static int instances; static Image *onlineIcon; |