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

[Enhancement] Messaging toast refactor #625

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

alvroble
Copy link
Contributor

@alvroble alvroble commented Nov 9, 2024

Description

This PR is a toast refactor as @easyuxd's UX guidelines in #606. Changes are the following:

  • Add toast messaging categories
  • General sizing refactor
  • Unbind icon color from text color
  • Dynamically adjust toast height
  • ToastOverlay is now available to use with no icon
  • New DIRE_WARNING_COLOR=#FF453A and ERROR_COLOR=#AD2013

Screenshots for some examples:

imagen

Dynamic height adjustment:

MainMenuView_SuccessToast

To do:

  • New "info" icon. I can get the seedsigner-icons.otf from Display toast when seed already exists #586.
  • More tests around the delay increase (0.2s) in the lock mechanism to ensure that a button press won’t interfere with a toast displayed immediately afterward.

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Documentation
  • Other

Checklist

  • I’ve run pytest and made sure all unit tests pass before sumbitting the PR

If you modified or added functionality/workflow, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms/os:

Note: Keep your changes limited in scope; if you uncover other issues or improvements along the way, ideally submit those as a separate PR. The more complicated the PR the harder to review, test, and merge.

Fixes / required changes:
* Toast refactor as of SeedSigner#606 guidelines
    - Add toast messaging categories
    - General sizing refactor
* Unbind icon color from text color
* Dynamically adjust toast height
@easyuxd
Copy link
Contributor

easyuxd commented Nov 10, 2024

Beautiful work, @alvroble -- thanks for doing this. The toast categories look great so far, and the dynamic height adjustment is clean!

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