From 69bed21c56d5122e3a597d7bd12808aef3150868 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 19 Nov 2024 11:10:16 +0800 Subject: [PATCH] Use constexpr for accentcolor adjustment value Signed-off-by: Claudio Cambra --- src/libsync/account.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/account.cpp b/src/libsync/account.cpp index df4030de8c64d..84c68b010db84 100644 --- a/src/libsync/account.cpp +++ b/src/libsync/account.cpp @@ -222,7 +222,7 @@ QColor Account::accentColor() const auto darknessAdjustment = static_cast((1 - Theme::getColorDarkness(accentColor)) * effectMultiplier); darknessAdjustment *= darknessAdjustment; // Square the value to pronounce the darkness more in lighter colours - const auto baseAdjustment = 125; + constexpr auto baseAdjustment = 125; const auto adjusted = Theme::isDarkColor(accentColor) ? accentColor : accentColor.darker(baseAdjustment + darknessAdjustment); return adjusted; }