1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Set default white background for all pages.

- fixes issue with dark themes

closes #602
This commit is contained in:
nowrep 2012-10-06 11:15:58 +02:00
parent fa1ee13611
commit 4fce161414

View File

@ -809,7 +809,11 @@ void MainApplication::reloadUserStyleSheet()
QUrl MainApplication::userStyleSheet(const QString &filePath) const
{
QString userStyle = AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
// Set default white background for all sites
// Fixes issue with dark themes when sites don't set background
QString userStyle = "body{background:white;}";
userStyle += AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
QFile file(filePath);
if (!filePath.isEmpty() && file.open(QFile::ReadOnly)) {