mirror-chatterino2/src/messages/messagecolor.hpp

25 lines
442 B
C++
Raw Normal View History

#pragma once
2017-12-31 00:50:07 +01:00
#include "singletons/thememanager.hpp"
#include <QColor>
namespace chatterino {
namespace messages {
2018-01-28 03:48:15 +01:00
struct MessageColor {
enum Type { Custom, Text, Link, System };
MessageColor(const QColor &color);
MessageColor(Type type = Text);
2017-12-31 22:58:35 +01:00
const QColor &getColor(singletons::ThemeManager &themeManager) const;
private:
Type type;
2018-01-28 03:57:22 +01:00
QColor customColor;
};
2017-12-16 17:53:48 +01:00
} // namespace messages
} // namespace chatterino