From f5d5bea8408daf39aaa09b18c6ed4bd2f7c52a3f Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 26 Dec 2021 19:58:08 +0100 Subject: Add green theme color, make "error" configurable --- src/ui/Theme.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui/Theme.h') diff --git a/src/ui/Theme.h b/src/ui/Theme.h index 2c85c61e..94c89fc5 100644 --- a/src/ui/Theme.h +++ b/src/ui/Theme.h @@ -15,6 +15,7 @@ class Theme : public QPalette Q_PROPERTY(QColor alternateButton READ alternateButton CONSTANT) Q_PROPERTY(QColor separator READ separator CONSTANT) Q_PROPERTY(QColor red READ red CONSTANT) + Q_PROPERTY(QColor green READ green CONSTANT) Q_PROPERTY(QColor error READ error CONSTANT) Q_PROPERTY(QColor orange READ orange CONSTANT) public: @@ -26,9 +27,10 @@ public: QColor alternateButton() const { return alternateButton_; } QColor separator() const { return separator_; } QColor red() const { return red_; } - QColor error() const { return QColor(0xdd, 0x3d, 0x3d); } + QColor green() const { return green_; } + QColor error() const { return error_; } QColor orange() const { return orange_; } private: - QColor sidebarBackground_, separator_, red_, orange_, alternateButton_; + QColor sidebarBackground_, separator_, red_, green_, error_, orange_, alternateButton_; }; -- cgit 1.5.1