diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 11 | ||||
-rw-r--r-- | src/gui/widgets/browserbox.h | 5 |
2 files changed, 5 insertions, 11 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index a2bee9219..023c3298d 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -61,7 +61,7 @@ BrowserBox::BrowserBox(const Widget2 *const widget, mLinkHandler(nullptr), mSkin(nullptr), mMode(mode), - mHighMode(UNDERLINE | BACKGROUND), + mHighMode(0), mSelectedLink(-1), mMaxRows(0), mHeight(0), @@ -102,6 +102,10 @@ BrowserBox::BrowserBox(const Widget2 *const widget, mPadding = mSkin->getPadding(); mNewLinePadding = mSkin->getOption("newLinePadding", 15); mItemPadding = mSkin->getOption("itemPadding"); + if (mSkin->getOption("highlightBackground")) + mHighMode |= BACKGROUND; + if (mSkin->getOption("highlightUnderline")) + mHighMode |= UNDERLINE; } mColors[0][BLACK] = getThemeColor(Theme::BLACK); @@ -163,11 +167,6 @@ void BrowserBox::setOpaque(bool opaque) mOpaque = opaque; } -void BrowserBox::setHighlightMode(const unsigned int highMode) -{ - mHighMode = highMode; -} - void BrowserBox::addRow(const std::string &row, const bool atTop) { std::string tmp = row; diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 7c2d3c053..3c470121a 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -133,11 +133,6 @@ class BrowserBox final : public gcn::Widget, void setOpaque(bool opaque); /** - * Sets the Highlight mode for links. - */ - void setHighlightMode(const unsigned int highMode); - - /** * Sets the maximum numbers of rows in the browser box. 0 = no limit. */ void setMaxRow(unsigned max) |