2017-09-21 00:54:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QColor>
|
|
|
|
|
2017-12-31 00:50:07 +01:00
|
|
|
#include "singletons/thememanager.hpp"
|
2017-09-21 00:54:10 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace messages {
|
2017-12-16 17:53:48 +01:00
|
|
|
|
2017-09-21 00:54:10 +02:00
|
|
|
class MessageColor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum Type { Custom, Text, Link, System };
|
|
|
|
|
|
|
|
explicit MessageColor(const QColor &color);
|
|
|
|
explicit MessageColor(Type type = Text);
|
|
|
|
|
|
|
|
Type getType() const;
|
2017-12-31 00:50:07 +01:00
|
|
|
const QColor &getColor(ThemeManager &themeManager) const;
|
2017-09-21 00:54:10 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Type type;
|
|
|
|
QColor color;
|
|
|
|
};
|
2017-12-16 17:53:48 +01:00
|
|
|
|
|
|
|
} // namespace messages
|
|
|
|
} // namespace chatterino
|