mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
IRCClient: Colorize some channel messages (joins, parts, topics)
This commit is contained in:
parent
794c81626e
commit
55aa819077
11 changed files with 60 additions and 23 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <AK/CircularQueue.h>
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/RetainPtr.h>
|
||||
#include <SharedGraphics/Color.h>
|
||||
|
||||
class IRCLogBufferModel;
|
||||
|
||||
|
@ -17,11 +18,13 @@ public:
|
|||
char prefix { 0 };
|
||||
String sender;
|
||||
String text;
|
||||
Color color { Color::Black };
|
||||
};
|
||||
|
||||
int count() const { return m_messages.size(); }
|
||||
const Message& at(int index) const { return m_messages.at(index); }
|
||||
void add_message(char prefix, const String& name, const String& text);
|
||||
void add_message(char prefix, const String& name, const String& text, Color = Color::Black);
|
||||
void add_message(const String& text, Color = Color::Black);
|
||||
void dump() const;
|
||||
|
||||
const IRCLogBufferModel* model() const { return m_model; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue