aboutsummaryrefslogtreecommitdiff
path: root/settingsdialog.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-06 20:57:56 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-06 20:57:56 +0200
commiteb283439a68dfb70a075205859d891dca831626b (patch)
treeb54923af31c8e05e804b36860ef9bb968f1aee99 /settingsdialog.cpp
parent304bed8a1f567e7ba247d19ecbeeecd40833db04 (diff)
downloadkristall-eb283439a68dfb70a075205859d891dca831626b.tar.gz
Improves navigation with hotkeys, adds sane default theme, adds page margin settings.
Diffstat (limited to 'settingsdialog.cpp')
-rw-r--r--settingsdialog.cpp8
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();
+}