input-field: make check and fail have precedence over *lock

This commit is contained in:
Maximilian Seidler 2024-12-22 08:49:48 +01:00
parent 7f43cca19a
commit 4f760c65f3

View file

@ -489,11 +489,6 @@ void CPasswordInputField::updateColors() {
// //
CGradientValueData* targetGrad = nullptr; CGradientValueData* targetGrad = nullptr;
if (checkWaiting)
targetGrad = colorConfig.check;
else if (displayFail)
targetGrad = colorConfig.fail;
if (g_pHyprlock->m_bCapsLock && NUMLOCK) if (g_pHyprlock->m_bCapsLock && NUMLOCK)
targetGrad = colorConfig.both; targetGrad = colorConfig.both;
else if (g_pHyprlock->m_bCapsLock) else if (g_pHyprlock->m_bCapsLock)
@ -501,6 +496,11 @@ void CPasswordInputField::updateColors() {
else if (NUMLOCK) else if (NUMLOCK)
targetGrad = colorConfig.num; targetGrad = colorConfig.num;
if (checkWaiting)
targetGrad = colorConfig.check;
else if (displayFail)
targetGrad = colorConfig.fail;
CGradientValueData* outerTarget = colorConfig.outer; CGradientValueData* outerTarget = colorConfig.outer;
CColor innerTarget = colorConfig.inner; CColor innerTarget = colorConfig.inner;
CColor fontTarget = (displayFail) ? colorConfig.fail->m_vColors.front() : colorConfig.font; CColor fontTarget = (displayFail) ? colorConfig.fail->m_vColors.front() : colorConfig.font;