summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-27 23:13:19 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-28 00:45:34 +0300
commitd05f3904b05e8af1cd319d75a380b2cce7edf77d (patch)
treecd29c1f738ac6415cbee8940034a4143f4c72886 /src/gui/widgets/tab.h
parentdba24b2e59eb739e73228dbcf707e943905a9e5a (diff)
downloadplus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.tar.gz
plus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.tar.bz2
plus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.tar.xz
plus-d05f3904b05e8af1cd319d75a380b2cce7edf77d.zip
Add outlining support to tabs.
Diffstat (limited to 'src/gui/widgets/tab.h')
-rw-r--r--src/gui/widgets/tab.h45
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;