Skip to content

Commit

Permalink
one more edge check
Browse files Browse the repository at this point in the history
  • Loading branch information
bvr-yr committed Mar 18, 2024
1 parent fc64fd8 commit 1976412
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/renderer/widgets/PasswordInputField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,11 @@ void CPasswordInputField::updateColors() {
const bool ANIMONCHECK = checkWaiting && (TARGET == (BORDERLESS ? INNER : OUTER) || TARGET == col.fail);

if (LOCKCHANGED || ANIMONCHECK) {
SOURCE = BORDERLESS ? col.inner : col.outer;
// to avoid an edge case when check_color set to the same as outer.
FSOURCE = ANIMONCHECK && OUTER == col.check ? FONT : col.font;
ISOURCE = ANIMONCHECK && OUTER == col.check ? INNER : col.inner;
const bool EQUALCOLORS = ANIMONCHECK && OUTER == col.check;
// to avoid throttle when check_color set to the same as outer.
SOURCE = BORDERLESS ? (EQUALCOLORS ? INNER : col.inner) : col.outer;
FSOURCE = EQUALCOLORS ? FONT : col.font;
ISOURCE = EQUALCOLORS ? INNER : col.inner;
}
} else {
SOURCE = BORDERLESS ? col.inner : col.outer;
Expand Down

0 comments on commit 1976412

Please sign in to comment.