Use system color scheme (using a Qt stylesheet) #104

The color scheme of nheko obeys the default color theme of Qt
(i.e. the system theme). It uses a Qt stylesheet to accomplish this,
which means replacing the color theme with a custom theme would only
be a matter of writing a new style sheet and loading it into the app.
This commit is contained in:
Max Sandholm 2017-11-16 16:33:52 +02:00 committed by Konstantinos Sideris
parent 21fdb26bd4
commit 19b526d453
29 changed files with 328 additions and 97 deletions

View file

@ -76,7 +76,7 @@ public:
public slots:
void openFileSelection();
void hideUploadSpinner();
void focusLineEdit() { input_->setFocus(); };
void focusLineEdit() { input_->setFocus(); }
private slots:
void addSelectedEmoji(const QString &emoji);
@ -91,7 +91,8 @@ signals:
void stoppedTyping();
protected:
void focusInEvent(QFocusEvent *event);
void focusInEvent(QFocusEvent *event) override;
void paintEvent(QPaintEvent *) override;
private:
void showUploadSpinner();