From 4f760c65f3484eece5ffb09d141dc9ad85c50f2d Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Sun, 22 Dec 2024 08:49:48 +0100 Subject: [PATCH] input-field: make check and fail have precedence over *lock --- src/renderer/widgets/PasswordInputField.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index 3091281..c9f8db2 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -489,11 +489,6 @@ void CPasswordInputField::updateColors() { // CGradientValueData* targetGrad = nullptr; - if (checkWaiting) - targetGrad = colorConfig.check; - else if (displayFail) - targetGrad = colorConfig.fail; - if (g_pHyprlock->m_bCapsLock && NUMLOCK) targetGrad = colorConfig.both; else if (g_pHyprlock->m_bCapsLock) @@ -501,6 +496,11 @@ void CPasswordInputField::updateColors() { else if (NUMLOCK) targetGrad = colorConfig.num; + if (checkWaiting) + targetGrad = colorConfig.check; + else if (displayFail) + targetGrad = colorConfig.fail; + CGradientValueData* outerTarget = colorConfig.outer; CColor innerTarget = colorConfig.inner; CColor fontTarget = (displayFail) ? colorConfig.fail->m_vColors.front() : colorConfig.font;