Skip to content

Commit

Permalink
input-field: same for bothlock_color
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Dec 29, 2024
1 parent d32cd78 commit 9e9f600
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/widgets/PasswordInputField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::u
dots.size = std::clamp(dots.size, 0.2f, 0.8f);
dots.spacing = std::clamp(dots.spacing, -1.f, 1.f);
colorConfig.transitionMs = std::clamp(colorConfig.transitionMs, 0, 1000);
colorConfig.both = colorConfig.both->m_bIsFallback ? colorConfig.fail : colorConfig.both;
colorConfig.caps = colorConfig.caps->m_bIsFallback ? colorConfig.fail : colorConfig.caps;

colorState.inner = colorConfig.inner;
Expand Down Expand Up @@ -487,7 +486,7 @@ void CPasswordInputField::updateColors() {
//
CGradientValueData* targetGrad = nullptr;

if (g_pHyprlock->m_bCapsLock && NUMLOCK)
if (g_pHyprlock->m_bCapsLock && NUMLOCK && !colorConfig.both->m_bIsFallback)
targetGrad = colorConfig.both;
else if (g_pHyprlock->m_bCapsLock)
targetGrad = colorConfig.caps;
Expand Down

0 comments on commit 9e9f600

Please sign in to comment.