summary refs log tree commit diff
path: root/src/ui/Theme.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-10-01 23:57:02 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-10-01 23:57:44 +0200
commit09babc91d257b2500a6e97ebbfbd21193a8cb8db (patch)
treeba3daf41f9826f6c913309fe0d07fa3c19ff4f42 /src/ui/Theme.h
parentReduce windows ci warnings (diff)
downloadnheko-09babc91d257b2500a6e97ebbfbd21193a8cb8db.tar.xz
Green is not Svg::green
fixes #1203
Diffstat (limited to 'src/ui/Theme.h')
-rw-r--r--src/ui/Theme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/Theme.h b/src/ui/Theme.h
index 94c89fc5..a9fb0519 100644
--- a/src/ui/Theme.h
+++ b/src/ui/Theme.h
@@ -18,6 +18,8 @@ class Theme : public QPalette
     Q_PROPERTY(QColor green READ green CONSTANT)
     Q_PROPERTY(QColor error READ error CONSTANT)
     Q_PROPERTY(QColor orange READ orange CONSTANT)
+    Q_PROPERTY(QColor online READ online CONSTANT)
+    Q_PROPERTY(QColor unavailable READ unavailable CONSTANT)
 public:
     Theme() {}
     explicit Theme(QStringView theme);
@@ -30,6 +32,8 @@ public:
     QColor green() const { return green_; }
     QColor error() const { return error_; }
     QColor orange() const { return orange_; }
+    QColor online() const { return QColor(0x00, 0xcc, 0x66); }
+    QColor unavailable() const { return QColor(0xff, 0x99, 0x33); }
 
 private:
     QColor sidebarBackground_, separator_, red_, green_, error_, orange_, alternateButton_;