diff options
Diffstat (limited to 'settingsdialog.cpp')
| -rw-r--r-- | settingsdialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/settingsdialog.cpp b/settingsdialog.cpp index e100c91..2078e7c 100644 --- a/settingsdialog.cpp +++ b/settingsdialog.cpp @@ -54,6 +54,8 @@ void SettingsDialog::setGeminiStyle(const GeminiStyle &style) this->ui->auto_theme->setCurrentIndex(this->current_style.theme); + this->ui->page_margin->setValue(this->current_style.margin); + auto setFontAndColor = [this](QLabel * label, QFont font, QColor color) { label->setText(formatFont(font)); @@ -245,3 +247,9 @@ void SettingsDialog::on_preview_url_textChanged(const QString &arg1) { this->reloadStylePreview(); } + +void SettingsDialog::on_page_margin_valueChanged(double value) +{ + this->current_style.margin = value; + this->reloadStylePreview(); +} |
