diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2010-07-04 12:41:49 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2010-07-04 12:41:49 +0200 |
commit | 6b0bbce035dfc22c770759aec60fe02d23c505ad (patch) | |
tree | 7c3f1c0f69bec7aa662c49f984fded83ea72d596 | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-6b0bbce035dfc22c770759aec60fe02d23c505ad.tar.xz |
apply the hack for dark color schemes only if the button text color is too light
-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); |