From df6417af4a5635616d0508d756fe352ebf2b2ed1 Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 25 Jan 2013 21:14:37 +0100 Subject: [PATCH] Final fix for page background with dark themes. Background of html element is now by default set to white. Closes #602 --- src/lib/app/mainapplication.cpp | 2 +- src/lib/data/html/adblockPage.html | 1 + src/lib/data/html/speeddial.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 62d34af54..467dadd76 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -873,7 +873,7 @@ QUrl MainApplication::userStyleSheet(const QString &filePath) const { // Set default white background for all sites // Fixes issue with dark themes when sites don't set background - QString userStyle /*= "html{background-color:white;}"*/; + QString userStyle = "html{background-color:white;}"; userStyle += AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}"; QFile file(filePath); diff --git a/src/lib/data/html/adblockPage.html b/src/lib/data/html/adblockPage.html index a912df471..a74d670c6 100644 --- a/src/lib/data/html/adblockPage.html +++ b/src/lib/data/html/adblockPage.html @@ -3,6 +3,7 @@ %TITLE%