Skip to content

Commit

Permalink
input-field: make check and fail have precedence over *lock
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Dec 22, 2024
1 parent 7f43cca commit 4f760c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/widgets/PasswordInputField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,18 +489,18 @@ 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)
targetGrad = colorConfig.caps;
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;
Expand Down

0 comments on commit 4f760c6

Please sign in to comment.