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/webview.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 91910970..72951698 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -59,7 +59,6 @@ #include #include -#include #include #include @@ -81,21 +80,6 @@ WebView::WebView(QWidget* parent) WebPage *page = new WebPage(this); setPage(page); - // // NOTE This is a lot hackish. We copied it from Arora, but using a "Windows Style" - // // seems really a pity to me. The problem is that using a KStyle everything seems "broken" - // // (at least with dark colors). So I think the code should be somthing like: - // KStyle s; - // setPalette( s.standardPalette() ); - // // But it doesn't work :( - // // We'll see in next KDE releases... - QPalette p; - if (p.color(QPalette::ButtonText).lightness() > 50) //if it is a dark theme - { - QWindowsStyle s; - p = s.standardPalette(); - setPalette(p); - } - // download system connect(this, SIGNAL(linkShiftClicked(const KUrl &)), page, SLOT(downloadUrl(const KUrl &))); -- cgit v1.2.1