summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);