mirror-chatterino2/src/messages/messagecolor.hpp

28 lines
461 B
C++
Raw Normal View History

#pragma once
#include <QColor>
#include <colorscheme.hpp>
namespace chatterino {
namespace messages {
2017-12-16 17:53:48 +01:00
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;
};
2017-12-16 17:53:48 +01:00
} // namespace messages
} // namespace chatterino