mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
28 lines
475 B
C++
28 lines
475 B
C++
#pragma once
|
|
|
|
#include <QColor>
|
|
|
|
#include "singletons/thememanager.hpp"
|
|
|
|
namespace chatterino {
|
|
namespace messages {
|
|
|
|
class MessageColor
|
|
{
|
|
public:
|
|
enum Type { Custom, Text, Link, System };
|
|
|
|
explicit MessageColor(const QColor &color);
|
|
explicit MessageColor(Type type = Text);
|
|
|
|
Type getType() const;
|
|
const QColor &getColor(ThemeManager &themeManager) const;
|
|
|
|
private:
|
|
Type type;
|
|
QColor color;
|
|
};
|
|
|
|
} // namespace messages
|
|
} // namespace chatterino
|