From ac1fb0ec902814316562552fc8d52bc5683e5f9d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Dec 2012 19:47:41 +0300 Subject: Add support for outline colors in browser box. --- src/gui/widgets/browserbox.h | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/browserbox.h') 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; -- cgit v1.2.3-70-g09d2