diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-28 10:31:16 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-28 12:11:51 +0100 |
| commit | 803559502dd1b330da39073cffa84278df403a88 (patch) | |
| tree | ce83d68cbe825ebe1bb400df1cc7fb74c66c4fc5 /src/dialogs/settingsdialog.cpp | |
| parent | c14d071e1e883891e96d908a1054929a291748ff (diff) | |
| download | kristall-803559502dd1b330da39073cffa84278df403a88.tar.gz | |
Add preference for centred H1
Also moves the 'enable text width' checkbox to next to the text width option, to save space.
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
| -rw-r--r-- | src/dialogs/settingsdialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp index 4bd0f8c..b883970 100644 --- a/src/dialogs/settingsdialog.cpp +++ b/src/dialogs/settingsdialog.cpp @@ -134,6 +134,8 @@ void SettingsDialog::setGeminiStyle(DocumentStyle const &style) this->ui->enable_justify_text->setChecked(this->current_style.justify_text); + this->ui->enable_centre_h1->setChecked(this->current_style.centre_h1); + this->ui->enable_text_width->setChecked(this->current_style.text_width_enabled); this->ui->text_width->setEnabled(this->current_style.text_width_enabled); this->ui->text_width->setValue(this->current_style.text_width); @@ -535,6 +537,12 @@ void SettingsDialog::on_enable_justify_text_clicked(bool checked) this->reloadStylePreview(); } +void SettingsDialog::on_enable_centre_h1_clicked(bool checked) +{ + this->current_style.centre_h1 = checked; + this->reloadStylePreview(); +} + void SettingsDialog::on_enable_text_width_clicked(bool checked) { this->current_style.text_width_enabled = checked; |
