-
Notifications
You must be signed in to change notification settings - Fork 816
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
Restyle unified search skeleton items animation and simplify their code #4718
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4718 +/- ##
==========================================
+ Coverage 56.67% 56.80% +0.12%
==========================================
Files 138 138
Lines 17143 17142 -1
==========================================
+ Hits 9716 9737 +21
+ Misses 7427 7405 -22
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better – some additions:
- Position: The skeleton elements are not at the same positions at which the actual elements (icons and text) would be
- Animation: There are 2 separate animations, 1 going over the icon and 1 over the text. Can this be combined into one?
- Color: The dark grey could be lightened a bit so the difference doesn't look as harsh
- Rounding: The icon square would look much better as a circle, and the text blocks also with "pill"-style border radius so the ends are round
f37d7f8
to
ae0cb53
Compare
Screen.Recording.2022-07-12.at.13.39.51.movRegarding the position, what do you mean? Is this a question of alignment, spacing, or starting height (i.e. the section headers pushing down the real list items)? I suspect it is the last one but not sure |
ae0cb53
to
2aecbe3
Compare
I mean that the skeleton entries are not in the place where the actual entries would be when they are loaded. :) If you send a recording (or 2 screenshots) of both the skeleton screen and the loaded list, I can show you. |
Looking at the entries more closely I can see what you mean, will change |
@jancborchardt since we need to properly align the result list items themselves (but we shouldn't do that until #4719 is merged to prevent painful merge conflicts) I think it would be easier to create a PR aligning both types of list items, and limit this one to just the animation |
@claucambra sounds good to me, all good design-wise here for now then. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have seen several issues with this implementation
The whole UnifiedSearchResultItemSkeletonContainer
should be put into a loader to avoid having all of this loaded (including the running 30 animations) permanently
This implementation is quite heavy relying on clipping and graphical effects that may require more computational power from the GPU. Could we not directly put an animated gradient on the rounded rectangle in place of the current clipping and opacity mask approach ?
I am also concerned that the 30 animations are running all on their own without being formally synced even though we would like them to be synced to ensure visual consistence (not able to know if a delay between independent animations could occur)
I was testing with a plain old window for the system tray (not related to this PR) and noticed that the visual result degrades if we enlarge the window
Most probably you will want to have those rectangles with gradients have twice the same width that the rectangle they are overlapped on top of ? That would mean a much smaller for the smaller rectangle and most probably a bigger one for the two text placeholder rectangles
2aecbe3
to
5078237
Compare
This is done now
After a lot of trying, no. It seems that
I mean, this is theoretically a possibility, but each animation has the exact same start point, end point, and duration, and a
This should be fixed now
All the rectangles need to be the same size in order to move in concert -- however this should no longer be an issue |
de43e4a
to
de17eee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works really great !
nice work
Signed-off-by: Claudio Cambra <[email protected]>
de17eee
to
e9e482b
Compare
AppImage file: Nextcloud-PR-4718-e9e482b17430acd432230b889581fd014f17e00d-x86_64.AppImage |
Kudos, SonarCloud Quality Gate passed! |
Addresses a point in #4432
New animation:
Screen.Recording.2022-07-12.at.13.39.51.mov
Old animation:
Screen.Recording.2022-07-11.at.17.56.17.mov
Signed-off-by: Claudio Cambra [email protected]