From ac5f8519c18790855939d8a3b49d28819f6d105c Mon Sep 17 00:00:00 2001 From: Liam Cooke Date: Thu, 3 Sep 2020 22:12:05 +1000 Subject: 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 --- src/browsertab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/browsertab.cpp') 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); -- cgit v1.2.3