1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Followup for background fix with dark themes.

This commit is contained in:
nowrep 2013-01-31 14:18:28 +01:00
parent a97ef7d627
commit 4f42040c7e
2 changed files with 6 additions and 4 deletions

View File

@ -882,10 +882,7 @@ RegisterQAppAssociation* MainApplication::associationManager()
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;}";
userStyle += AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
QString userStyle = AdBlockManager::instance()->elementHidingRules() + "{ display:none !important;}";
QFile file(filePath);
if (!filePath.isEmpty() && file.open(QFile::ReadOnly)) {

View File

@ -74,6 +74,11 @@ WebTab::WebTab(QupZilla* mainClass, LocationBar* locationBar)
, m_pinned(false)
, m_inspectorVisible(false)
{
setObjectName("webtab");
// This fixes background of pages with dark themes
setStyleSheet("#webtab {background-color:white;}");
m_layout = new QVBoxLayout(this);
m_layout->setContentsMargins(0, 0, 0, 0);
m_layout->setSpacing(0);