summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-13 05:44:22 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-09 06:55:07 +0100
commitf54cd905f49d08116bf988bcb4451beb168cbd48 (patch)
treefe1b9eebd4941fe44cee48cfd2818a7239b2ac07 /src/gui/widgets/browserbox.h
parent734cf89900cde0526043429c3028cb69616f7cb8 (diff)
downloadmana-f54cd905f49d08116bf988bcb4451beb168cbd48.tar.gz
mana-f54cd905f49d08116bf988bcb4451beb168cbd48.tar.bz2
mana-f54cd905f49d08116bf988bcb4451beb168cbd48.tar.xz
mana-f54cd905f49d08116bf988bcb4451beb168cbd48.zip
Made the chat text much more readable in every opacity case.
I added text shadow and outline support to the browserbox, and made it adapt the text for the chattabs depending on the GUI opacity. Reviewed-by: Ablu.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index 28ec734a..1be74a0f 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -92,6 +92,16 @@ class BrowserBox : public gcn::Widget,
void setHighlightMode(unsigned int highMode);
/**
+ * Sets whether the font will use a shadow for text.
+ */
+ void setShadowedText(bool shadows) { mShadows = shadows; }
+
+ /**
+ * Sets whether the font will use a shadow for text.
+ */
+ void setOutlinedText(bool outline) { mOutline = outline; }
+
+ /**
* Sets the maximum numbers of rows in the browser box. 0 = no limit.
*/
void setMaxRow(unsigned max) {mMaxRows = max; };
@@ -197,6 +207,8 @@ class BrowserBox : public gcn::Widget,
LinkHandler *mLinkHandler;
unsigned int mMode;
unsigned int mHighMode;
+ bool mShadows;
+ bool mOutline;
bool mOpaque;
bool mUseLinksAndUserColors;
int mSelectedLink;