From 0cb1ee2755e26a6e0f14f5f05fda4bbd8bf22f32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Dec 2012 20:51:15 +0300 Subject: Add outlining to status popup dialog. --- src/gui/statuspopup.cpp | 47 ++++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 17 deletions(-) (limited to 'src/gui/statuspopup.cpp') diff --git a/src/gui/statuspopup.cpp b/src/gui/statuspopup.cpp index c99ab9964..ced7c97db 100644 --- a/src/gui/statuspopup.cpp +++ b/src/gui/statuspopup.cpp @@ -75,21 +75,36 @@ StatusPopup::StatusPopup() : mCameraMode->setPosition(0, 16 + 13 * fontHeight); mDisableGameModifiers->setPosition(0, 20 + 14 * fontHeight); - mMoveType->setForegroundColor(getThemeColor(Theme::POPUP)); - mCrazyMoveType->setForegroundColor(getThemeColor(Theme::POPUP)); - mMoveToTargetType->setForegroundColor(getThemeColor(Theme::POPUP)); - mFollowMode->setForegroundColor(getThemeColor(Theme::POPUP)); - mAttackWeaponType->setForegroundColor(getThemeColor(Theme::POPUP)); - mAttackType->setForegroundColor(getThemeColor(Theme::POPUP)); - mMagicAttackType->setForegroundColor(getThemeColor(Theme::POPUP)); - mPvpAttackType->setForegroundColor(getThemeColor(Theme::POPUP)); - mDropCounter->setForegroundColor(getThemeColor(Theme::POPUP)); - mPickUpType->setForegroundColor(getThemeColor(Theme::POPUP)); - mMapType->setForegroundColor(getThemeColor(Theme::POPUP)); - mImitationMode->setForegroundColor(getThemeColor(Theme::POPUP)); - mAwayMode->setForegroundColor(getThemeColor(Theme::POPUP)); - mCameraMode->setForegroundColor(getThemeColor(Theme::POPUP)); - mDisableGameModifiers->setForegroundColor(getThemeColor(Theme::POPUP)); + mMoveType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mCrazyMoveType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mMoveToTargetType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mFollowMode->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mAttackWeaponType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mAttackType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mMagicAttackType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mPvpAttackType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mDropCounter->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mPickUpType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mMapType->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mImitationMode->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mAwayMode->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mCameraMode->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); + mDisableGameModifiers->setForegroundColorAll(getThemeColor(Theme::POPUP), + getThemeColor(Theme::POPUP_OUTLINE)); add(mMoveType); add(mCrazyMoveType); @@ -106,8 +121,6 @@ StatusPopup::StatusPopup() : add(mImitationMode); add(mAwayMode); add(mCameraMode); - -// addMouseListener(this); } StatusPopup::~StatusPopup() -- cgit v1.2.3-70-g09d2