diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 15:04:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 15:08:24 +0300 |
commit | 07121956f882dce22235868a25e0c2df96fb828a (patch) | |
tree | 5078133e95d7b55c4811e09c9dc4f53261e62fe9 /src/gui/widgets/virtshortcutcontainer.cpp | |
parent | f57b683f8f9909ba7787c33a4953869a2ce04a5c (diff) | |
download | manaverse-07121956f882dce22235868a25e0c2df96fb828a.tar.gz manaverse-07121956f882dce22235868a25e0c2df96fb828a.tar.bz2 manaverse-07121956f882dce22235868a25e0c2df96fb828a.tar.xz manaverse-07121956f882dce22235868a25e0c2df96fb828a.zip |
Move theme colors enum into separate file.
Diffstat (limited to 'src/gui/widgets/virtshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/virtshortcutcontainer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/virtshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp index 44ea247cc..2d72234a0 100644 --- a/src/gui/widgets/virtshortcutcontainer.cpp +++ b/src/gui/widgets/virtshortcutcontainer.cpp @@ -45,10 +45,10 @@ VirtShortcutContainer::VirtShortcutContainer(Widget2 *const widget, ShortcutBase *const shortcut) : ShortcutContainer(widget), mItemClicked(false), - mEquipedColor(getThemeColor(Theme::ITEM_EQUIPPED)), - mEquipedColor2(getThemeColor(Theme::ITEM_EQUIPPED_OUTLINE)), - mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)), - mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE)), + mEquipedColor(getThemeColor(ThemeColorId::ITEM_EQUIPPED)), + mEquipedColor2(getThemeColor(ThemeColorId::ITEM_EQUIPPED_OUTLINE)), + mUnEquipedColor(getThemeColor(ThemeColorId::ITEM_NOT_EQUIPPED)), + mUnEquipedColor2(getThemeColor(ThemeColorId::ITEM_NOT_EQUIPPED_OUTLINE)), mShortcut(shortcut) { if (mShortcut) @@ -64,10 +64,10 @@ VirtShortcutContainer::~VirtShortcutContainer() void VirtShortcutContainer::setWidget2(const Widget2 *const widget) { Widget2::setWidget2(widget); - mEquipedColor = getThemeColor(Theme::ITEM_EQUIPPED); - mEquipedColor2 = getThemeColor(Theme::ITEM_EQUIPPED_OUTLINE); - mUnEquipedColor = getThemeColor(Theme::ITEM_NOT_EQUIPPED); - mUnEquipedColor2 = getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE); + mEquipedColor = getThemeColor(ThemeColorId::ITEM_EQUIPPED); + mEquipedColor2 = getThemeColor(ThemeColorId::ITEM_EQUIPPED_OUTLINE); + mUnEquipedColor = getThemeColor(ThemeColorId::ITEM_NOT_EQUIPPED); + mUnEquipedColor2 = getThemeColor(ThemeColorId::ITEM_NOT_EQUIPPED_OUTLINE); } void VirtShortcutContainer::draw(Graphics *graphics) |