mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-01-03 18:29:48 +01:00
input-field: make check and fail have precedence over *lock
This commit is contained in:
parent
7f43cca19a
commit
4f760c65f3
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue