aboutsummaryrefslogtreecommitdiff
path: root/src/renderers/textstyleinstance.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-10 15:50:33 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-10 10:06:15 +0100
commitb1e25a64dee20f7eb5b7fc15414fb69a7b0ace1d (patch)
tree4a3fa888b9bf10495425536409f09316f86624cd /src/renderers/textstyleinstance.cpp
parent08e2184c9f77fa627d33c2de08addae934a2308f (diff)
geminirenderer: readibility improvements
Values are hard-coded at the moment. Need preferences
Diffstat (limited to 'src/renderers/textstyleinstance.cpp')
-rw-r--r--src/renderers/textstyleinstance.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/renderers/textstyleinstance.cpp b/src/renderers/textstyleinstance.cpp
index 6d734f1..0a99625 100644
--- a/src/renderers/textstyleinstance.cpp
+++ b/src/renderers/textstyleinstance.cpp
@@ -28,6 +28,24 @@ TextStyleInstance::TextStyleInstance(DocumentStyle const & themed_style)
preformatted_format.setNonBreakableLines(true);
- block_quote_format.setIndent(1);
+ block_quote_format.setIndent(2);
block_quote_format.setBackground(themed_style.blockquote_color);
+
+ // Other alignments
+ standard_format.setAlignment(Qt::AlignJustify);
+ standard_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight);
+ standard_format.setIndent(1);
+
+ link_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight);
+
+ block_quote_format.setAlignment(Qt::AlignJustify);
+ block_quote_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight);
+
+ list_format.setAlignment(Qt::AlignJustify);
+ list_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight);
+ list_format.setIndent(2);
+
+ preformatted_format.setIndent(1);
+
+ heading_format.setLineHeight(0, QTextBlockFormat::LineDistanceHeight);
}