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

Replace loading and saving popups with procedural animations #3304

Open
wants to merge 1 commit into
base: community
Choose a base branch
from

Conversation

Metamere
Copy link
Contributor

Purpose: The loading and saving popups interfere with scrolling through presets as they block the text for the presets. There are other cases where this is an issue, but this is the main one. The text was supposed to have an animated period at the end, presumably to indicate that it is still working and not frozen. That animation has never worked as intended, because a timer was only set once for the standard popup time of 800 ms, rather than a shorter timer which would be set again on each update. I sought to create something pleasing to the eye, and unique to the Deluge.

  • Added procedurally generated cyclical loading and saving animations to replace the text popups for loading and saving.
  • Solicited feedback from the community and revised a few times, ending with this version.
  • Added plenty of comments to make potential future changes easier. It could be easily changed to make it the same animation for loading and saving, or to simplify it further.

https://github.com/user-attachments/assets/5d56e405-a8b7-4b1b-8cad-e20ea2228043
This video recording of the OLED screen shows the initial loading animation as well as how it looks on all subsequent cycles. The saving animation is a mirror image of this (mirrored around the vertical centerline of it).
It clears a 1 pixel border around the animation, which only comes into play on certain views, such as the special save that collects media where there is a popup window. The animation is removed as soon as the working process is completed. It also has a 350ms delay before the animation starts, so it will save resources on the majority of load/save operations.

Note: I submitted a similar PR on a different branch with an early version of this update that involved icons, but I deleted that branch after I royally screwed it up and just couldn't deal with it.

- Added procedurally generated cyclical loading and saving animations.
- These replace the animation of a moving period which has never actually worked.
- They also replace the text popups for loading and saving, so there will no longer be anything blocking the displayed information such as the preset titles.
- Solicited feedback from the community and revised a few times, ending with this version.
- Added plenty of comments to make potential future changes easier.
Copy link
Contributor

Test Results

107 tests  ±0   107 ✅ ±0   0s ⏱️ -1s
 16 suites ±0     0 💤 ±0 
 16 files   ±0     0 ❌ ±0 

Results for commit c3d723c. ± Comparison against base commit c3c3918.

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.

1 participant