diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index a37d802f6..72aec0f53 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -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)) {