mirror-chatterino2/src/messages/MessageColor.hpp

22 lines
353 B
C++
Raw Normal View History

#pragma once
#include <QColor>
namespace chatterino {
class Theme;
2018-01-28 03:48:15 +01:00
struct MessageColor {
enum Type { Custom, Text, Link, System };
MessageColor(const QColor &color);
2018-07-06 19:23:47 +02:00
MessageColor(Type type_ = Text);
2018-06-28 20:03:04 +02:00
const QColor &getColor(Theme &themeManager) const;
private:
2018-07-06 19:23:47 +02:00
Type type_;
QColor customColor_;
};
2017-12-16 17:53:48 +01:00
} // namespace chatterino