mirror-chatterino2/src/singletons/Theme.hpp
LosFarmosCTL b5b395f975
Colorize entire split input header instead of just the channel name (#3379)
Co-authored-by: Paweł <zneix@zneix.eu>
2022-01-22 16:23:02 +01:00

68 lines
1.4 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 focusedBorder;
QColor background;
QColor focusedBackground;
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