1
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:
Juraj Oravec 2024-06-13 08:16:06 +02:00
parent d12b3fed22
commit 491b66a6b7
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -381,5 +381,12 @@ void SiteInfo::saveSiteSettings()
if (!(siteSettings == mApp->siteSettingsManager()->getSiteSettings(m_baseUrl))) {
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
}
}