diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-26 12:56:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-26 12:56:57 +0300 |
commit | 41f0e3289d9827ef71b6b76f524b530ff6f3de67 (patch) | |
tree | b71c44fc14d73b2ccde2a3d0408b5c308dce0ad4 | |
parent | 4222791a851df151af206e0f8f0b849fa2cd3555 (diff) | |
download | manaplus-41f0e3289d9827ef71b6b76f524b530ff6f3de67.tar.gz manaplus-41f0e3289d9827ef71b6b76f524b530ff6f3de67.tar.bz2 manaplus-41f0e3289d9827ef71b6b76f524b530ff6f3de67.tar.xz manaplus-41f0e3289d9827ef71b6b76f524b530ff6f3de67.zip |
Add outline for PLAYER_ADVANCED color.
fix outline for header in beingpopup.
-rw-r--r-- | src/gui/beingpopup.cpp | 8 | ||||
-rw-r--r-- | src/gui/theme.cpp | 1 | ||||
-rw-r--r-- | src/gui/theme.h | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp index 67e414c7e..ac35f5a57 100644 --- a/src/gui/beingpopup.cpp +++ b/src/gui/beingpopup.cpp @@ -108,12 +108,14 @@ void BeingPopup::show(const int x, const int y, Being *const b) } if (b->isAdvanced()) { - mBeingName->setForegroundColor(getThemeColor( - Theme::PLAYER_ADVANCED)); + mBeingName->setForegroundColorAll(getThemeColor( + Theme::PLAYER_ADVANCED), getThemeColor( + Theme::PLAYER_ADVANCED_OUTLINE)); } else { - mBeingName->setForegroundColor(getThemeColor(Theme::POPUP)); + mBeingName->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); } mBeingName->adjustSize(); diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 68aae255c..134055ef7 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -919,6 +919,7 @@ static int readColorType(const std::string &type) "CHARM", "CHARM_OUTLINE", "PLAYER_ADVANCED", + "PLAYER_ADVANCED_OUTLINE", "BUBBLE_NAME", "BUBBLE_NAME_OUTLINE", "BUBBLE_TEXT", diff --git a/src/gui/theme.h b/src/gui/theme.h index 909fbca78..ca577ac9e 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -361,6 +361,7 @@ class Theme final : public Palette, public ConfigListener CHARM, CHARM_OUTLINE, PLAYER_ADVANCED, + PLAYER_ADVANCED_OUTLINE, BUBBLE_NAME, BUBBLE_NAME_OUTLINE, BUBBLE_TEXT, |