mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Followup for background fix with dark themes.
This commit is contained in:
parent
a97ef7d627
commit
4f42040c7e
@ -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)) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user