diff options
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r-- | src/gui/widgets/button.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index aff46b2a..26e0ad90 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -160,9 +160,9 @@ void Button::draw(gcn::Graphics *graphics) drawImageRect(0, 0, getWidth(), getHeight(), button[mode]); if (mode == BUTTON_DISABLED) - graphics->setColor(guiPalette->getColor(Palette::BUTTON_DISABLED)); + graphics->setColor(Theme::getThemeColor(Theme::BUTTON_DISABLED)); else - graphics->setColor(guiPalette->getColor(Palette::BUTTON)); + graphics->setColor(Theme::getThemeColor(Theme::BUTTON)); int textX; int textY = getHeight() / 2 - getFont()->getHeight() / 2; |