Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show autentication failReason without additional input #98

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

PaideiaDilemma
Copy link
Collaborator

This makes it so that

  1. The renderer is triggered when the onPasswordCheckTimer callback is fired. Previously you had to give an additional input for the renderer to be triggered and the fail reason to show.
  2. The updateDots function now sets dots.currentAmout to 0, when a failID is present and PASSLEN is 0. That leads to the draw function to return false and the failReason to be displayed until another input happens.

Addresses #97

Previous behavior (I pressed a key at the end)

wrong_password_previously.mp4

Behavior introduced here

wrong_password.mp4

This makes it so that
1. The renderer is triggered when the onPasswordCheckTimer callback is fired. Previously you had to give an
   additional input for the renderer to be triggered and the fail reason to show.
2. The updateDots function now sets dots.currentAmout to 0, when a failID is present.
   That leads to the draw function to return false and the failReason to be displayed until another input happens.
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, thanks!

@vaxerski vaxerski merged commit ac757cf into hyprwm:main Feb 29, 2024
1 check passed
PaideiaDilemma added a commit to PaideiaDilemma/hyprlock that referenced this pull request Mar 1, 2024
Follow up to hyprwm#98

Adds input-field:fade_out_timeout config value, which specifies the amount of milliseconds the placeholder
text should be shown for.

Return fade.animated from PasswordInputField::draw to make sure the fade out is rendered.

Remove the conditional call to render in onKey because it is not needed.
@PaideiaDilemma PaideiaDilemma deleted the show-lock-error branch July 7, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants