Reenable invites
This commit is contained in:
parent
6112badb08
commit
c290b0747f
14 changed files with 260 additions and 51 deletions
|
|
@ -60,12 +60,15 @@ Theme::Theme(std::string_view theme)
|
|||
separator_ = p.mid().color();
|
||||
if (theme == "light") {
|
||||
sidebarBackground_ = QColor("#233649");
|
||||
alternateButton_ = QColor("#ccc");
|
||||
red_ = QColor("#a82353");
|
||||
} else if (theme == "dark") {
|
||||
sidebarBackground_ = QColor("#2d3139");
|
||||
alternateButton_ = QColor("#414A59");
|
||||
red_ = QColor("#a82353");
|
||||
} else {
|
||||
sidebarBackground_ = p.window().color();
|
||||
alternateButton_ = p.dark().color();
|
||||
red_ = QColor("red");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ class Theme : public QPalette
|
|||
{
|
||||
Q_GADGET
|
||||
Q_PROPERTY(QColor sidebarBackground READ sidebarBackground CONSTANT)
|
||||
Q_PROPERTY(QColor alternateButton READ alternateButton CONSTANT)
|
||||
Q_PROPERTY(QColor separator READ separator CONSTANT)
|
||||
Q_PROPERTY(QColor red READ red CONSTANT)
|
||||
public:
|
||||
|
|
@ -73,9 +74,10 @@ public:
|
|||
static QPalette paletteFromTheme(std::string_view theme);
|
||||
|
||||
QColor sidebarBackground() const { return sidebarBackground_; }
|
||||
QColor alternateButton() const { return alternateButton_; }
|
||||
QColor separator() const { return separator_; }
|
||||
QColor red() const { return red_; }
|
||||
|
||||
private:
|
||||
QColor sidebarBackground_, separator_, red_;
|
||||
QColor sidebarBackground_, separator_, red_, alternateButton_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue