summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-19 21:02:14 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:42 +0300
commit213a21e4c079113e5822d2cf90802d6dcb2cb232 (patch)
tree9d3ae306575ef0dc5c3b8346673e2f246b5e427e /src/gui/widgets/button.cpp
parentc632452430cb3f886da38fa315cb27a3a3a10d2c (diff)
downloadplus-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.gz
plus-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.bz2
plus-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.xz
plus-213a21e4c079113e5822d2cf90802d6dcb2cb232.zip
In all controls, call Widget2 methods to get colors.
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r--src/gui/widgets/button.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index 2ea528a8e..9b0f0578f 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -66,6 +66,7 @@ Skin *Button::button[BUTTON_COUNT];
Button::Button() :
gcn::Button(),
+ Widget2(),
gcn::WidgetListener(),
mDescription(""), mClickCount(0),
mTag(0),
@@ -88,6 +89,7 @@ Button::Button() :
Button::Button(const std::string &caption, const std::string &actionEventId,
gcn::ActionListener *const listener) :
gcn::Button(caption),
+ Widget2(),
gcn::WidgetListener(),
mDescription(""),
mClickCount(0),
@@ -117,6 +119,7 @@ Button::Button(const std::string &caption, const std::string &imageName,
const std::string &actionEventId,
gcn::ActionListener *const listener) :
gcn::Button(caption),
+ Widget2(),
gcn::WidgetListener(),
mDescription(""),
mClickCount(0),
@@ -192,10 +195,10 @@ void Button::init()
updateAlpha();
}
- mEnabledColor = Theme::getThemeColor(Theme::BUTTON);
- mDisabledColor = Theme::getThemeColor(Theme::BUTTON_DISABLED);
- mHighlightedColor = Theme::getThemeColor(Theme::BUTTON_HIGHLIGHTED);
- mPressedColor = Theme::getThemeColor(Theme::BUTTON_PRESSED);
+ mEnabledColor = getThemeColor(Theme::BUTTON);
+ mDisabledColor = getThemeColor(Theme::BUTTON_DISABLED);
+ mHighlightedColor = getThemeColor(Theme::BUTTON_HIGHLIGHTED);
+ mPressedColor = getThemeColor(Theme::BUTTON_PRESSED);
mInstances++;
}