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

grouped workspace list applet: move to clutter animations and undepend tweener #12192

Conversation

anaximeno
Copy link
Contributor

Also improved the scale click animation a bit.

@JosephMcc
Copy link
Contributor

I haven't tested these at all but do have one piece of feedback. Please use better commit messages. A bunch of "feat: Use clutter animations" is very unhelpful when browsing the history. Much better would be something along the lines of "gwl: Update appGroup to use clutter animations". It tells me both where you made a change and what you changed in one short title. Much more useful when browsing the commit history.

@anaximeno
Copy link
Contributor Author

I haven't tested these at all but do have one piece of feedback. Please use better commit messages. A bunch of "feat: Use clutter animations" is very unhelpful when browsing the history. Much better would be something along the lines of "gwl: Update appGroup to use clutter animations". It tells me both where you made a change and what you changed in one short title. Much more useful when browsing the commit history.

Sure, thanks for that suggestion, I was following something called conventional commits, but the way you suggest seems more adequate for this project. I'll try to follow that pattern instead on my next commits here.

@mtwebster
Copy link
Member

mtwebster commented May 15, 2024

I don't think this is working the way you think it is -

With easing,

  • There is no time parameter, use duration instead, which expects ms, seconds.
  • There is no transition parameter, use mode instead, which expects Clutter.AnimationMode.EASE_OUT_QUAD, for example.
  • There is no onCompleteScope (this was completely breaking the app icon launch animation, and throwing an error into the log.

edit: Where there were missing parameters, it was just using the default values for them (probably 0 duration).

Have a look at Cinnamon's source, particularly js/ui/windowManager.js, where there are lots of examples of this.

and please test more thoroughly!

ref:
c5f76ff
#12071
#12072
#12073
etc..

@anaximeno
Copy link
Contributor Author

I believe I saw someone using it like this on some applet so I thought it would work, I also didn't notice any issues while running and trying them locally, so thanks to that I didn't consider what you suggested before.

I will verify how this is being properly implemented inside Cinnamon (and also read some documentation) and then re-create these pull requests later. Thanks!

@anaximeno anaximeno closed this May 15, 2024
@anaximeno anaximeno deleted the grouped-workspace-list-move-to-clutter-animations branch May 16, 2024 15:26
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.

3 participants