From d05f3904b05e8af1cd319d75a380b2cce7edf77d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Dec 2012 23:13:19 +0300 Subject: Add outlining support to tabs. --- src/gui/widgets/tab.h | 45 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-) (limited to 'src/gui/widgets/tab.h') 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; -- cgit v1.2.3-70-g09d2