diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-22 16:28:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-22 16:28:01 +0300 |
commit | 7bedfccf5982534a9cbcb2c18ca0d37df117bfc8 (patch) | |
tree | 1909b542e825fee82549cc3c8e3c7b7227b8956b /src/gui/widgets/desktop.cpp | |
parent | 8257d7d35e0dd915512df06cafb810f4611be06a (diff) | |
download | manaplus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.tar.gz manaplus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.tar.bz2 manaplus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.tar.xz manaplus-7bedfccf5982534a9cbcb2c18ca0d37df117bfc8.zip |
Add new colors to themes: BORDER, BACKGROUND_GRAY, SCROLLBAR_GRAY.
Diffstat (limited to 'src/gui/widgets/desktop.cpp')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index cfb757638..40d90ba11 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -53,7 +53,8 @@ Desktop::Desktop() : mVersionLabel = new Label(strprintf("%s (Mana %s)", appName.c_str(), FULL_VERSION)); - mVersionLabel->setBackgroundColor(gcn::Color(255, 255, 255, 128)); + mVersionLabel->setBackgroundColor( + Theme::getThemeColor(Theme::BACKGROUND, 128)); add(mVersionLabel, 25, 2); } @@ -85,7 +86,7 @@ void Desktop::draw(gcn::Graphics *graphics) getHeight() > mWallpaper->getHeight())) { // TODO: Color from palette - g->setColor(gcn::Color(64, 64, 64)); + g->setColor(Theme::getThemeColor(Theme::BACKGROUND_GRAY)); g->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight())); } @@ -106,7 +107,7 @@ void Desktop::draw(gcn::Graphics *graphics) } // Draw a thin border under the application version... - g->setColor(gcn::Color(255, 255, 255, 128)); + g->setColor(Theme::getThemeColor(Theme::BACKGROUND, 128)); g->fillRectangle(gcn::Rectangle(mVersionLabel->getDimension())); Container::draw(graphics); |