From f54cd905f49d08116bf988bcb4451beb168cbd48 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 13 Nov 2011 05:44:22 +0100 Subject: 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. --- src/gui/widgets/chattab.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/chattab.h') diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index bc139079..1b666da1 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -34,7 +34,7 @@ class ScrollArea; /** * A tab for the chat window. This is special to ease chat handling. */ -class ChatTab : public Tab, public AutoCompleteLister +class ChatTab : public Tab, public AutoCompleteLister, public EventListener { public: ChatTab(const std::string &name); @@ -102,6 +102,8 @@ class ChatTab : public Tab, public AutoCompleteLister virtual void saveToLogFile(std::string &msg); + void event(Event::Channel channel, const Event &event); + protected: friend class ChatWindow; friend class WhisperWindow; @@ -112,6 +114,12 @@ class ChatTab : public Tab, public AutoCompleteLister virtual void handleCommand(const std::string &msg); + /** + * Adapts the text format to the current gui opacity, + * for better readability. + */ + void updateTextFormat(int alpha); + void addRow(std::string &line); ScrollArea *mScrollArea; -- cgit v1.2.3-70-g09d2