2017-09-21 00:54:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-28 19:46:45 +02:00
|
|
|
#include "singletons/Themes.hpp"
|
2017-09-21 00:54:10 +02:00
|
|
|
|
2018-04-03 02:55:32 +02:00
|
|
|
#include <QColor>
|
|
|
|
|
2017-09-21 00:54:10 +02:00
|
|
|
namespace chatterino {
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-01-28 03:48:15 +01:00
|
|
|
struct MessageColor {
|
2017-09-21 00:54:10 +02:00
|
|
|
enum Type { Custom, Text, Link, System };
|
|
|
|
|
2018-01-11 20:16:25 +01:00
|
|
|
MessageColor(const QColor &color);
|
|
|
|
MessageColor(Type type = Text);
|
2017-09-21 00:54:10 +02:00
|
|
|
|
2018-06-28 19:38:57 +02:00
|
|
|
const QColor &getColor(ThemeManager &themeManager) const;
|
2017-09-21 00:54:10 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Type type;
|
2018-01-28 03:57:22 +01:00
|
|
|
QColor customColor;
|
2017-09-21 00:54:10 +02:00
|
|
|
};
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2017-12-16 17:53:48 +01:00
|
|
|
} // namespace chatterino
|