mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Don't set white body bg color for sites by default
- it does actually break some pages
Reverts 4fce161414
This commit is contained in:
parent
f20e10a360
commit
0c4b8e164e
@ -812,8 +812,7 @@ QUrl MainApplication::userStyleSheet(const QString &filePath) const
|
|||||||
// Set default white background for all sites
|
// Set default white background for all sites
|
||||||
// Fixes issue with dark themes when sites don't set background
|
// Fixes issue with dark themes when sites don't set background
|
||||||
|
|
||||||
QString userStyle = "body{background:white;}";
|
QString userStyle = AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
|
||||||
userStyle += AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
|
|
||||||
|
|
||||||
QFile file(filePath);
|
QFile file(filePath);
|
||||||
if (!filePath.isEmpty() && file.open(QFile::ReadOnly)) {
|
if (!filePath.isEmpty() && file.open(QFile::ReadOnly)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user