From ae3bb0fd43d6129520ec4b1f022976e7b929dcde Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Fri, 25 Oct 2024 23:04:56 +0200 Subject: [PATCH] input-field: fix invert_numlock regression (#530) --- src/renderer/widgets/PasswordInputField.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index 446590d..aed2010 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -432,7 +432,7 @@ static void changeColor(const CColor& source, const CColor& target, CColor& subj void CPasswordInputField::updateColors() { const bool BORDERLESS = outThick == 0; - const bool NUMLOCK = g_pHyprlock->m_bNumLock || (colorConfig.invertNum && !g_pHyprlock->m_bNumLock); + const bool NUMLOCK = (colorConfig.invertNum) ? !g_pHyprlock->m_bNumLock : g_pHyprlock->m_bNumLock; const auto MULTI = colorConfig.transitionMs == 0 ? 1.0 : std::clamp(std::chrono::duration_cast(std::chrono::system_clock::now() - colorState.lastFrame).count() / (double)colorConfig.transitionMs,