summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-07-04 16:19:31 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-07-04 16:19:31 +0200
commitf5a61bdd6bf486d84728dc4eb69ce235ba44da75 (patch)
treeddbca1708d6b8f02d55e2bc4875bbdfe6475ef1f /src
parentClean MainView API and fix "Pano's bug" about opening new tabs near current ons (diff)
parentapply the hack for dark color schemes only if the button text color is too light (diff)
downloadrekonq-f5a61bdd6bf486d84728dc4eb69ce235ba44da75.tar.xz
Merge commit 'refs/merge-requests/147' of git://gitorious.org/rekonq/mainline into m147
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 9bbd45fc..188216f8 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -85,7 +85,7 @@ WebView::WebView(QWidget* parent)
// // But it doesn't work :(
// // We'll see in next KDE releases...
QPalette p;
- if (p.color(QPalette::Window) != Qt::white) {
+ if (p.color(QPalette::ButtonText).lightness() > 50) { //if it is a dark theme
QWindowsStyle s;
p = s.standardPalette();
setPalette(p);