diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-09 00:19:32 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-09 00:19:32 +0200 |
| commit | df4fbcb4cf6c593c725f677b2ed587e877ae6709 (patch) | |
| tree | e399602df5bd4bd240b8746ff45dee13cc6ebd53 /src/documentstyle.cpp | |
| parent | 573e73eb1b7a4b5f1cc7037feab620ad9c077f2d (diff) | |
Adds help document, adds block quote support, updates gemini parser to newest spec, adds support for arbitrary gemini files in about: space, adds url bar shortcut, fixes bug with line breaks in preformatted text
Diffstat (limited to 'src/documentstyle.cpp')
| -rw-r--r-- | src/documentstyle.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/documentstyle.cpp b/src/documentstyle.cpp index c7ec17b..369e827 100644 --- a/src/documentstyle.cpp +++ b/src/documentstyle.cpp @@ -125,6 +125,7 @@ DocumentStyle::DocumentStyle() : theme(Fixed), h1_color("#022f90"), h2_color("#022f90"), h3_color("#022f90"), + blockquote_color("#FFFFFF"), internal_link_color("#0e8fff"), external_link_color("#0e8fff"), cross_scheme_link_color("#0960a7"), @@ -164,6 +165,7 @@ bool DocumentStyle::save(QSettings &settings) const settings.setValue("background_color", background_color.name()); settings.setValue("standard_color", standard_color.name()); settings.setValue("preformatted_color", preformatted_color.name()); + settings.setValue("blockquote_color", blockquote_color.name()); settings.setValue("h1_color", h1_color.name()); settings.setValue("h2_color", h2_color.name()); settings.setValue("h3_color", h3_color.name()); @@ -196,6 +198,7 @@ bool DocumentStyle::load(QSettings &settings) background_color = QColor(settings.value("background_color").toString()); standard_color = QColor(settings.value("standard_color").toString()); preformatted_color = QColor(settings.value("preformatted_color").toString()); + blockquote_color = QColor(settings.value("blockquote_color").toString()); h1_color = QColor(settings.value("h1_color").toString()); h2_color = QColor(settings.value("h2_color").toString()); h3_color = QColor(settings.value("h3_color").toString()); @@ -245,6 +248,8 @@ DocumentStyle DocumentStyle::derive(const QUrl &url) const themed.internal_link_color = themed.external_link_color.lighter(110); themed.cross_scheme_link_color = themed.external_link_color.darker(110); + themed.blockquote_color = themed.background_color.lighter(130); + break; } @@ -261,6 +266,8 @@ DocumentStyle DocumentStyle::derive(const QUrl &url) const themed.internal_link_color = themed.external_link_color.darker(110); themed.cross_scheme_link_color = themed.external_link_color.lighter(110); + themed.blockquote_color = themed.background_color.darker(120); + break; } |
