Add dark theme
This commit is contained in:
parent
f36e498503
commit
f0ecf6eee6
9 changed files with 139 additions and 19 deletions
|
|
@ -39,7 +39,7 @@ public:
|
|||
void setTheme(QString theme) { theme_ = theme; }
|
||||
void setTray(bool state) { isTrayEnabled_ = state; }
|
||||
|
||||
QString theme() const { return !theme_.isEmpty() ? theme_ : "default"; }
|
||||
QString theme() const { return !theme_.isEmpty() ? theme_ : "light"; }
|
||||
bool isTrayEnabled() const { return isTrayEnabled_; }
|
||||
|
||||
private:
|
||||
|
|
@ -72,6 +72,8 @@ signals:
|
|||
void trayOptionChanged(bool value);
|
||||
|
||||
private:
|
||||
void restoreThemeCombo() const;
|
||||
|
||||
// Layouts
|
||||
QVBoxLayout *topLayout_;
|
||||
QVBoxLayout *mainLayout_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue