input-field: fix color updates for BORDERLESS swap_font_color false (#669)

This commit is contained in:
Maximilian Seidler 2025-01-30 11:03:17 +00:00 committed by GitHub
parent 1bfa79eb83
commit c976b6a1d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -420,9 +420,9 @@ void CPasswordInputField::updateColors() {
if (checkWaiting || displayFail || g_pHyprlock->m_bCapsLock || NUMLOCK) {
if (BORDERLESS && colorConfig.swapFont) {
fontTarget = colorConfig.fail->m_vColors.front();
fontTarget = targetGrad->m_vColors.front();
} else if (BORDERLESS && !colorConfig.swapFont) {
innerTarget = colorConfig.fail->m_vColors.front();
innerTarget = targetGrad->m_vColors.front();
// When changing the inner color, the font cannot be fail_color
fontTarget = colorConfig.font;
} else if (targetGrad) {