mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[Fix] Use default white bg for pages with dark themes
This commit should finally resolve this issue. It is setting background-color:white for html by default. See #602
This commit is contained in:
parent
d6ec6f67ff
commit
54e1bfeffa
|
@ -855,7 +855,8 @@ 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 = AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
|
||||
QString userStyle = "html{background-color:white;}";
|
||||
userStyle += AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
|
||||
|
||||
QFile file(filePath);
|
||||
if (!filePath.isEmpty() && file.open(QFile::ReadOnly)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user