diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/theme.cpp | 6 | ||||
-rw-r--r-- | src/resources/theme.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp index 966f0e94..0509681c 100644 --- a/src/resources/theme.cpp +++ b/src/resources/theme.cpp @@ -111,7 +111,7 @@ Theme::Theme(): { initDefaultThemePath(); - listen(CHANNEL_CONFIG); + listen(Mana::Event::ConfigChannel); loadColors(); mColors[HIGHLIGHT].ch = 'H'; @@ -208,9 +208,9 @@ void Theme::updateAlpha() iter->second->updateAlpha(mMinimumOpacity); } -void Theme::event(Channels channel, const Mana::Event &event) +void Theme::event(Mana::Event::Channel channel, const Mana::Event &event) { - if (channel == CHANNEL_CONFIG && + if (channel == Mana::Event::ConfigChannel && event.getType() == Mana::Event::ConfigOptionChanged && event.getString("option") == "guialpha") { diff --git a/src/resources/theme.h b/src/resources/theme.h index f830c94f..050e6d2d 100644 --- a/src/resources/theme.h +++ b/src/resources/theme.h @@ -218,7 +218,7 @@ class Theme : public Palette, public Mana::Listener */ void setMinimumOpacity(float minimumOpacity); - void event(Channels channel, const Mana::Event &event); + void event(Mana::Event::Channel channel, const Mana::Event &event); private: Theme(); |