summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-16 14:43:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-16 14:43:47 +0300
commitbf3205aafa71fad7138e7be8a4b641907ec056ce (patch)
tree1ce5728058c09aeafafb4210cf0ecd89ab0e0397 /src/gui/widgets
parentf03edb38328aa5ddb48e10198621bf2353096440 (diff)
downloadplus-bf3205aafa71fad7138e7be8a4b641907ec056ce.tar.gz
plus-bf3205aafa71fad7138e7be8a4b641907ec056ce.tar.bz2
plus-bf3205aafa71fad7138e7be8a4b641907ec056ce.tar.xz
plus-bf3205aafa71fad7138e7be8a4b641907ec056ce.zip
add ability to show emotes in text over heads.
for this textbox replaces into browserbox in speechbubble.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox.cpp7
-rw-r--r--src/gui/widgets/browserbox.h3
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;