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

input-field: refactor updateColors and other improvements #469

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

PaideiaDilemma
Copy link
Contributor

@PaideiaDilemma PaideiaDilemma commented Aug 28, 2024

Looked into the updateColor code for the input field because of #468.
I did not understand what was going on, so I rewrote the function.

I think it behaves as it did before with all the different options, but now swap_font_color and invert_numlock work as expected.

Notable is that there are no animations for font color changes (which happen when outline_thickness=0 and swap_font_color=1). As reported in #468 those options are currently broken.
I implemented animations for the font, but making subsequent requests to the asyncResourceGatherer with changing colors is not nice and lead to some problems. So the updateColors function just sets the font color without animating it.

I did quite a bit of testing but if someone can double check if everything works that would be appreciated.

Closes #468

@vaxerski vaxerski merged commit a0af542 into hyprwm:main Aug 29, 2024
1 check passed
@wxifze wxifze mentioned this pull request Aug 31, 2024
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.

fail_text/fail_color are broken
2 participants