summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widget/wsearchlineedit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widget/wsearchlineedit.cpp b/src/widget/wsearchlineedit.cpp
index 6724361afd..808e802954 100644
--- a/src/widget/wsearchlineedit.cpp
+++ b/src/widget/wsearchlineedit.cpp
@@ -187,8 +187,7 @@ void WSearchLineEdit::setup(const QDomNode& node, const SkinContext& context) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
// Use only 25% instead of 50% transparency for the placeholder text color
auto placeholderColor = foregroundColor;
- placeholderColor.setAlpha(
- placeholderColor.alpha() - placeholderColor.alpha() / 4);
+ placeholderColor.setAlpha(placeholderColor.alpha() * 3 / 4); // 75% opaque
kLogger.debug()
<< "Placeholder color:"
<< placeholderColor;