mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
d99fafaa99
Co-authored-by: Paweł <zneix@zneix.eu> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "BaseTheme.hpp"
|
|
#include "common/Singleton.hpp"
|
|
#include "util/RapidJsonSerializeQString.hpp"
|
|
|
|
#include <QBrush>
|
|
#include <QColor>
|
|
#include <pajlada/settings/setting.hpp>
|
|
#include <singletons/Settings.hpp>
|
|
|
|
namespace chatterino {
|
|
|
|
class WindowManager;
|
|
|
|
class Theme final : public Singleton, public BaseTheme
|
|
{
|
|
public:
|
|
Theme();
|
|
|
|
/// SPLITS
|
|
struct {
|
|
QColor messageSeperator;
|
|
QColor background;
|
|
QColor dropPreview;
|
|
QColor dropPreviewBorder;
|
|
QColor dropTargetRect;
|
|
QColor dropTargetRectBorder;
|
|
QColor resizeHandle;
|
|
QColor resizeHandleBackground;
|
|
|
|
struct {
|
|
QColor border;
|
|
QColor background;
|
|
QColor text;
|
|
QColor focusedText;
|
|
// int margin;
|
|
} header;
|
|
|
|
struct {
|
|
QColor border;
|
|
QColor background;
|
|
QColor selection;
|
|
QColor focusedLine;
|
|
QColor text;
|
|
QString styleSheet;
|
|
// int margin;
|
|
} input;
|
|
} splits;
|
|
|
|
struct {
|
|
QPixmap copy;
|
|
} buttons;
|
|
|
|
void normalizeColor(QColor &color);
|
|
|
|
private:
|
|
void actuallyUpdate(double hue, double multiplier) override;
|
|
|
|
pajlada::Signals::NoArgSignal repaintVisibleChatWidgets_;
|
|
|
|
friend class WindowManager;
|
|
};
|
|
|
|
} // namespace chatterino
|