diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-04 16:19:31 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-04 16:19:31 +0200 |
commit | f5a61bdd6bf486d84728dc4eb69ce235ba44da75 (patch) | |
tree | ddbca1708d6b8f02d55e2bc4875bbdfe6475ef1f /src/webview.cpp | |
parent | Clean MainView API and fix "Pano's bug" about opening new tabs near current ons (diff) | |
parent | apply the hack for dark color schemes only if the button text color is too light (diff) | |
download | rekonq-f5a61bdd6bf486d84728dc4eb69ce235ba44da75.tar.xz |
Merge commit 'refs/merge-requests/147' of git://gitorious.org/rekonq/mainline into m147
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 2 |
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); |