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/popups/beingpopup.cpp | |
parent | f57b683f8f9909ba7787c33a4953869a2ce04a5c (diff) | |
download | plus-07121956f882dce22235868a25e0c2df96fb828a.tar.gz plus-07121956f882dce22235868a25e0c2df96fb828a.tar.bz2 plus-07121956f882dce22235868a25e0c2df96fb828a.tar.xz plus-07121956f882dce22235868a25e0c2df96fb828a.zip |
Move theme colors enum into separate file.
Diffstat (limited to 'src/gui/popups/beingpopup.cpp')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index 8cacafefb..d1f7b1e17 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -70,20 +70,20 @@ BeingPopup::BeingPopup() : mBeingComment->setPosition(0, 5 * fontHeight); mBeingRoom->setPosition(0, 6 * fontHeight); - mBeingParty->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); - mBeingGuild->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); - mBeingRank->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); - mBeingBuyBoard->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); - mBeingSellBoard->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); - mBeingComment->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); - mBeingRoom->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); + mBeingParty->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); + mBeingGuild->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); + mBeingRank->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); + mBeingBuyBoard->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); + mBeingSellBoard->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); + mBeingComment->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); + mBeingRoom->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); } BeingPopup::~BeingPopup() @@ -138,13 +138,13 @@ void BeingPopup::show(const int x, const int y, Being *const b) if (b->isAdvanced()) { mBeingName->setForegroundColorAll(getThemeColor( - Theme::PLAYER_ADVANCED), getThemeColor( - Theme::PLAYER_ADVANCED_OUTLINE)); + ThemeColorId::PLAYER_ADVANCED), getThemeColor( + ThemeColorId::PLAYER_ADVANCED_OUTLINE)); } else { - mBeingName->setForegroundColorAll(getThemeColor(Theme::POPUP), - getThemeColor(Theme::POPUP_OUTLINE)); + mBeingName->setForegroundColorAll(getThemeColor(ThemeColorId::POPUP), + getThemeColor(ThemeColorId::POPUP_OUTLINE)); } mBeingName->adjustSize(); |