From eb283439a68dfb70a075205859d891dca831626b Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 6 Jun 2020 20:57:56 +0200 Subject: Improves navigation with hotkeys, adds sane default theme, adds page margin settings. --- settingsdialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'settingsdialog.cpp') 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(); +} -- cgit v1.2.3