summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-27 19:47:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:06 +0300
commitac1fb0ec902814316562552fc8d52bc5683e5f9d (patch)
tree3192922434c264c0f6b23deb6f6784b07c11d619 /src/gui/widgets/browserbox.h
parent7538f0032c1f7f743c1c84dceb6b24d74e849b3c (diff)
downloadmanaverse-ac1fb0ec902814316562552fc8d52bc5683e5f9d.tar.gz
manaverse-ac1fb0ec902814316562552fc8d52bc5683e5f9d.tar.bz2
manaverse-ac1fb0ec902814316562552fc8d52bc5683e5f9d.tar.xz
manaverse-ac1fb0ec902814316562552fc8d52bc5683e5f9d.zip
Add support for outline colors in browser box.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index bff0d97c3..9e1899d0c 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -49,15 +49,26 @@ class LinePart final
{
public:
LinePart(const int x, const int y, const gcn::Color color,
- const std::string &text, const bool bold) :
- mX(x), mY(y), mColor(color), mText(text), mType(0),
- mImage(nullptr), mBold(bold)
+ const gcn::Color color2, const std::string &text,
+ const bool bold) :
+ mX(x),
+ mY(y),
+ mColor(color),
+ mColor2(color2),
+ mText(text),
+ mType(0),
+ mImage(nullptr),
+ mBold(bold)
{
}
LinePart(const int x, const int y, const gcn::Color color,
- Image *const image) :
- mX(x), mY(y), mColor(color), mText(""), mType(1),
+ const gcn::Color color2, Image *const image) :
+ mX(x),
+ mY(y),
+ mColor(color),
+ mColor2(color2),
+ mType(1),
mImage(image), mBold(false)
{
}
@@ -66,6 +77,7 @@ class LinePart final
int mX, mY;
gcn::Color mColor;
+ gcn::Color mColor2;
std::string mText;
unsigned char mType;
Image *mImage;
@@ -236,7 +248,8 @@ class BrowserBox final : public gcn::Widget,
gcn::Color mBackgroundColor;
gcn::Color mHighlightColor;
gcn::Color mHyperLinkColor;
- gcn::Color mColors[COLORS_MAX];
+ gcn::Color mColors[2][COLORS_MAX];
+ gcn::Color mForegroundColor2;
static Skin *mSkin;
static int mInstances;