diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-06 18:28:10 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-06 18:28:10 +0200 |
| commit | cb69dca1dbf19ae854276803442e724045c4be81 (patch) | |
| tree | 8c3dd168d5ab337161a44246133bef98fb5be31c /settingsdialog.hpp | |
| parent | 7772993ed5d65f10588f3d70961c429991fd7849 (diff) | |
| download | kristall-cb69dca1dbf19ae854276803442e724045c4be81.tar.gz | |
Adds color theming, adds automatic color theming with dark/light themes
Diffstat (limited to 'settingsdialog.hpp')
| -rw-r--r-- | settingsdialog.hpp | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/settingsdialog.hpp b/settingsdialog.hpp index 046e3e7..c86b737 100644 --- a/settingsdialog.hpp +++ b/settingsdialog.hpp @@ -17,7 +17,11 @@ public: explicit SettingsDialog(QWidget *parent = nullptr); ~SettingsDialog(); - void setStyle(GeminiStyle const & style); + void setGeminiStyle(GeminiStyle const & style); + + GeminiStyle geminiStyle() const { + return current_style; + } private slots: void on_std_change_font_clicked(); @@ -30,11 +34,39 @@ private slots: void on_h3_change_font_clicked(); + void on_std_change_color_clicked(); + + void on_pre_change_color_clicked(); + + void on_h1_change_color_clicked(); + + void on_h2_change_color_clicked(); + + void on_h3_change_color_clicked(); + + void on_bg_change_color_clicked(); + + void on_link_local_change_color_clicked(); + + void on_link_foreign_change_color_clicked(); + + void on_link_cross_change_color_clicked(); + + void on_link_local_prefix_textChanged(const QString &arg1); + + void on_link_foreign_prefix_textChanged(const QString &arg1); + + void on_auto_theme_currentIndexChanged(int index); + + void on_preview_url_textChanged(const QString &arg1); + private: void reloadStylePreview(); void updateFont(QFont & input); + void updateColor(QColor & input); + private: Ui::SettingsDialog *ui; |
