summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-07-04 12:41:49 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-07-04 12:41:49 +0200
commit6b0bbce035dfc22c770759aec60fe02d23c505ad (patch)
tree7c3f1c0f69bec7aa662c49f984fded83ea72d596 /src
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-6b0bbce035dfc22c770759aec60fe02d23c505ad.tar.xz
apply the hack for dark color schemes only if the button text color is too light
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);