mirror-chatterino2/src/messages/messagecolor.hpp
2017-09-21 12:15:01 +02:00

26 lines
411 B
C++

#pragma once
#include <QColor>
#include <colorscheme.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(ColorScheme &colorScheme) const;
private:
Type type;
QColor color;
};
}
}