summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-12 20:35:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-12 20:35:30 +0300
commit1031587ed2e4623d622bcc602c262290e14ea4c5 (patch)
tree2d1aaf848192694dac57d46b10fbec5b9df6e69e /src/gui/theme.h
parentf7abd3b849d218af2a57e14490a8054d01be0e6f (diff)
downloadplus-1031587ed2e4623d622bcc602c262290e14ea4c5.tar.gz
plus-1031587ed2e4623d622bcc602c262290e14ea4c5.tar.bz2
plus-1031587ed2e4623d622bcc602c262290e14ea4c5.tar.xz
plus-1031587ed2e4623d622bcc602c262290e14ea4c5.zip
Add for windows close button hover image.
New theme parameter "closeImageHighlighted". It have attributes same as "closeImage".
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r--src/gui/theme.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 04c355e0f..245289096 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -72,8 +72,8 @@ class Skin
/**
* Returns the image used by a close button for this skin.
*/
- Image *getCloseImage() const
- { return mCloseImage; }
+ Image *getCloseImage(const bool state) const
+ { return state ? mCloseImageHighlighted : mCloseImage; }
/**
* Returns the image used by a sticky button for this skin.
@@ -117,6 +117,7 @@ class Skin
std::string mName; /**< Name of the skin to use */
ImageRect mBorder; /**< The window border and background */
Image *mCloseImage; /**< Close Button Image */
+ Image *mCloseImageHighlighted; /**< Highlighted close Button Image */
Image *mStickyImageUp; /**< Sticky Button Image */
Image *mStickyImageDown; /**< Sticky Button Image */
int mPadding;