From 905c7e9c391f371d68fc646cd64ddc24055ed40b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 3 Apr 2011 12:38:58 +0200 Subject: This commit aims to fix a long standing rekonq bug about scrollbar (and webview in general) theme. The right way to do it seems be using a local .css file. Letting this be in master for one week (at least) before backporting... --- src/application.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index 7fcbfe86..1fe936f3 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -514,10 +514,11 @@ void Application::updateConfiguration() QWebSettings::setOfflineStorageDefaultQuota(50000); } - // Applies user defined CSS to all open webpages. If there no longer is a - // user defined CSS removes it from all open webpages. - if (!ReKonfig::userCSS().isEmpty()) - defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS()); + // Applies user/system defined CSS to all open webpages. + ReKonfig::userCSS().isEmpty() + ? defaultSettings->setUserStyleSheetUrl(KUrl(KStandardDirs::locate("appdata" , "default_rekonq.css"))) + : defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS()) + ; // ====== load Settings on main classes historyManager()->loadSettings(); -- cgit v1.2.1