summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-05-05 13:29:05 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-05-05 14:08:51 +0200
commit6145bd4f7ecac466af2332029fab1a6d4e971998 (patch)
tree0c4930828056346acdfa166516a71388a36d1ee6 /src
parent09339cd7dea9d69ec7afc697952b67a7601db91e (diff)
Simplify placeholder color calculation
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;