summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-22 16:28:01 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-22 16:28:01 +0300
commit7bedfccf5982534a9cbcb2c18ca0d37df117bfc8 (patch)
tree1909b542e825fee82549cc3c8e3c7b7227b8956b /src/gui/outfitwindow.cpp
parent8257d7d35e0dd915512df06cafb810f4611be06a (diff)
downloadplus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.tar.gz
plus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.tar.bz2
plus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.tar.xz
plus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.zip
Add new colors to themes: BORDER, BACKGROUND_GRAY, SCROLLBAR_GRAY.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r--src/gui/outfitwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index 09e75856f..79ac88d94 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -32,6 +32,7 @@
#include "playerinfo.h"
#include "gui/chatwindow.h"
+#include "gui/theme.h"
#include "gui/viewport.h"
#include "gui/widgets/button.h"
@@ -303,9 +304,9 @@ void OutfitWindow::draw(gcn::Graphics *graphics)
const int itemX = 10 + ((i % mGridWidth) * mBoxWidth);
const int itemY = 25 + ((i / mGridWidth) * mBoxHeight);
- graphics->setColor(gcn::Color(0, 0, 0, 64));
+ graphics->setColor(Theme::getThemeColor(Theme::BORDER, 64));
graphics->drawRectangle(gcn::Rectangle(itemX, itemY, 32, 32));
- graphics->setColor(gcn::Color(255, 255, 255, 32));
+ graphics->setColor(Theme::getThemeColor(Theme::BACKGROUND, 32));
graphics->fillRectangle(gcn::Rectangle(itemX, itemY, 32, 32));
if (mItems[mCurrentOutfit][i] < 0)