From 41f0e3289d9827ef71b6b76f524b530ff6f3de67 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 May 2013 12:56:57 +0300 Subject: Add outline for PLAYER_ADVANCED color. fix outline for header in beingpopup. --- src/gui/beingpopup.cpp | 8 +++++--- src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui') 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, -- cgit v1.2.3-70-g09d2