aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs/settingsdialog.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-16 09:56:14 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-16 00:19:29 +0100
commit4135e0d368a8181b7422338559bdcd3b214443c4 (patch)
tree7447e944f42d00f6196c08d9def78f8fadd6c22e /src/dialogs/settingsdialog.cpp
parent5acffd9b549c89670a7af69d613266b8d8120ecd (diff)
downloadkristall-4135e0d368a8181b7422338559bdcd3b214443c4.tar.gz
Improved blockquotes
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
-rw-r--r--src/dialogs/settingsdialog.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index a7b08e8..36e4291 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -138,7 +138,7 @@ void SettingsDialog::setGeminiStyle(DocumentStyle const &style)
.arg(this->current_style.background_color.name(), "#FF00FF"));
ui->quote_preview->setStyleSheet(COLOR_STYLE
- .arg(this->current_style.blockquote_color.name(), "#FF00FF"));
+ .arg(this->current_style.blockquote_bgcolor.name(), "#FF00FF"));
ui->link_local_preview->setStyleSheet(COLOR_STYLE
.arg(this->current_style.background_color.name(), this->current_style.internal_link_color.name()));
@@ -154,6 +154,7 @@ void SettingsDialog::setGeminiStyle(DocumentStyle const &style)
setFontAndColor(this->ui->h1_preview, this->current_style.h1_font, this->current_style.h1_color);
setFontAndColor(this->ui->h2_preview, this->current_style.h2_font, this->current_style.h2_color);
setFontAndColor(this->ui->h3_preview, this->current_style.h3_font, this->current_style.h3_color);
+ setFontAndColor(this->ui->bq_preview, this->current_style.blockquote_font, this->current_style.blockquote_fgcolor);
this->reloadStylePreview();
}
@@ -359,6 +360,11 @@ void SettingsDialog::on_h3_change_font_clicked()
updateFont(current_style.h3_font);
}
+void SettingsDialog::on_bq_change_font_clicked()
+{
+ updateFont(current_style.blockquote_font);
+}
+
void SettingsDialog::updateColor(QColor &input)
{
QColorDialog dialog { this };
@@ -396,6 +402,11 @@ void SettingsDialog::on_h3_change_color_clicked()
updateColor(current_style.h3_color);
}
+void SettingsDialog::on_bq_change_color_clicked()
+{
+ updateColor(current_style.blockquote_fgcolor);
+}
+
void SettingsDialog::on_bg_change_color_clicked()
{
updateColor(current_style.background_color);
@@ -417,7 +428,7 @@ void SettingsDialog::on_link_cross_change_color_clicked()
}
void SettingsDialog::on_quote_change_color_clicked()
{
- updateColor(current_style.blockquote_color);
+ updateColor(current_style.blockquote_bgcolor);
}
void SettingsDialog::on_link_local_prefix_textChanged(const QString &text)