diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 7 | ||||
-rw-r--r-- | src/gui/widgets/browserbox.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 0dafe8e24..014e4cf58 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -889,6 +889,13 @@ std::string BrowserBox::getTextAtPos(const int x, const int y) const return str; } +void BrowserBox::setForegroundColorAll(const gcn::Color &color1, + const gcn::Color &color2) +{ + mForegroundColor = color1; + mForegroundColor2 = color2; +} + LinePart::~LinePart() { if (mImage) diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index e06ca3f48..fd037506b 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -231,6 +231,9 @@ class BrowserBox final : public gcn::Widget, int getPadding() const A_WARN_UNUSED { return mPadding; } + void setForegroundColorAll(const gcn::Color &color1, + const gcn::Color &color2); + private: int calcHeight() A_WARN_UNUSED; |