aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
authorLiam Cooke <liam@liamcooke.com>2020-09-03 22:12:05 +1000
committerFelix Queißner <felix@ib-queissner.de>2020-09-03 14:29:18 +0200
commitac5f8519c18790855939d8a3b49d28819f6d105c (patch)
treefe1707ba379cfb51c21b10f91dddccce1d0fd2dc /src/browsertab.cpp
parent4dc7cdb8f779b22de2ce2db64a68068dfaead592 (diff)
downloadkristall-ac5f8519c18790855939d8a3b49d28819f6d105c.tar.gz
Set text color for default stylesheet
Fixes a bug where only the background color is styled for error messages, so the error gets the OS text color. Closes #57
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp
index 2c34314..d7df827 100644
--- a/src/browsertab.cpp
+++ b/src/browsertab.cpp
@@ -469,7 +469,7 @@ void BrowserTab::on_requestComplete(const QByteArray &ref_data, const QString &m
auto doc_style = kristall::document_style.derive(this->current_location);
- this->ui->text_browser->setStyleSheet(QString("QTextBrowser { background-color: %1; }").arg(doc_style.background_color.name()));
+ this->ui->text_browser->setStyleSheet(QString("QTextBrowser { background-color: %1; color: %2; }").arg(doc_style.background_color.name(), doc_style.standard_color.name()));
bool plaintext_only = (kristall::options.text_display == GenericSettings::PlainText);