diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-27 23:13:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-28 00:45:34 +0300 |
commit | d05f3904b05e8af1cd319d75a380b2cce7edf77d (patch) | |
tree | cd29c1f738ac6415cbee8940034a4143f4c72886 /src/gui/widgets/tab.h | |
parent | dba24b2e59eb739e73228dbcf707e943905a9e5a (diff) | |
download | manaplus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.tar.gz manaplus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.tar.bz2 manaplus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.tar.xz manaplus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.zip |
Add outlining support to tabs.
Diffstat (limited to 'src/gui/widgets/tab.h')
-rw-r--r-- | src/gui/widgets/tab.h | 45 |
1 files changed, 35 insertions, 10 deletions
diff --git a/src/gui/widgets/tab.h b/src/gui/widgets/tab.h index 17237edd7..1e30fdeb2 100644 --- a/src/gui/widgets/tab.h +++ b/src/gui/widgets/tab.h @@ -66,32 +66,52 @@ class Tab : public gcn::BasicContainer, /** * Set the normal color for the tab's text. */ - void setTabColor(const gcn::Color *const color) - { mTabColor = color; } + void setTabColor(const gcn::Color *const color1, + const gcn::Color *const color2) + { + mTabColor = color1; + mTabOutlineColor = color2; + } /** * Set the highlighted color for the tab's text. */ - void setHighlightedTabColor(const gcn::Color *const color) - { mTabHighlightedColor = color; } + void setHighlightedTabColor(const gcn::Color *const color1, + const gcn::Color *const color2) + { + mTabHighlightedColor = color1; + mTabHighlightedOutlineColor = color2; + } /** * Set the selected color for the tab's text. */ - void setSelectedTabColor(const gcn::Color *const color) - { mTabSelectedColor = color; } + void setSelectedTabColor(const gcn::Color *const color1, + const gcn::Color *const color2) + { + mTabSelectedColor = color1; + mTabSelectedOutlineColor = color2; + } /** * Set the flash color for the tab's text. */ - void setFlashTabColor(const gcn::Color *const color) - { mFlashColor = color; } + void setFlashTabColor(const gcn::Color *const color1, + const gcn::Color *const color2) + { + mFlashColor = color1; + mFlashOutlineColor = color2; + } /** * Set the player flash color for the tab's text. */ - void setPlayerFlashTabColor(const gcn::Color *const color) - { mPlayerFlashColor = color; } + void setPlayerFlashTabColor(const gcn::Color *const color1, + const gcn::Color *const color2) + { + mPlayerFlashColor = color1; + mPlayerFlashOutlineColor = color2; + } /** * Set tab flashing state @@ -146,10 +166,15 @@ class Tab : public gcn::BasicContainer, static float mAlpha; const gcn::Color *mTabColor; + const gcn::Color *mTabOutlineColor; const gcn::Color *mTabHighlightedColor; + const gcn::Color *mTabHighlightedOutlineColor; const gcn::Color *mTabSelectedColor; + const gcn::Color *mTabSelectedOutlineColor; const gcn::Color *mFlashColor; + const gcn::Color *mFlashOutlineColor; const gcn::Color *mPlayerFlashColor; + const gcn::Color *mPlayerFlashOutlineColor; int mFlash; ImageCollection *mVertexes; bool mRedraw; |