mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
SiteInfo: Immediately apply "Farce Dark Mode"
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
d12b3fed22
commit
491b66a6b7
|
@ -381,5 +381,12 @@ void SiteInfo::saveSiteSettings()
|
||||||
|
|
||||||
if (!(siteSettings == mApp->siteSettingsManager()->getSiteSettings(m_baseUrl))) {
|
if (!(siteSettings == mApp->siteSettingsManager()->getSiteSettings(m_baseUrl))) {
|
||||||
mApp->siteSettingsManager()->setSiteSettings(siteSettings);
|
mApp->siteSettingsManager()->setSiteSettings(siteSettings);
|
||||||
|
|
||||||
|
#if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
m_view->page()->settings()->setAttribute(
|
||||||
|
QWebEngineSettings::ForceDarkMode,
|
||||||
|
siteSettings.attributes[QWebEngineSettings::ForceDarkMode]
|
||||||
|
);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user