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

Track menu: add star rating #12700

Merged
merged 1 commit into from
Apr 20, 2024
Merged

Track menu: add star rating #12700

merged 1 commit into from
Apr 20, 2024

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Jan 30, 2024

One of the coffee break projects to keep the balance between chore and fun/challenges.
All building blocks are already there, and working on top of #12648 this was easy. Styling was a no-brainer unexpectedly : )

image

Works as desired. Draft until #12648 is merged.
based on #12648
Fixes #10652

Note: I did intentionally not define a hover effect. It seems that can only be applied to the star rating (not the entire row), and since the rating is surrounded by submenu actions that expand on hover, the star hover effect kicks in only after those submenus disappeared and the pointer is moved (unlike with other actions/submenus where the hover style is applied instantly).

src/widget/wtrackmenu.cpp Outdated Show resolved Hide resolved
@ronso0
Copy link
Member Author

ronso0 commented Jan 30, 2024

Oh wait, why the submenu?
This could as well be inline.

@ronso0 ronso0 changed the base branch from 2.4 to main February 11, 2024 13:03
@ronso0 ronso0 force-pushed the track-menu-stars branch 2 times, most recently from 490eb6e to 9b49ba0 Compare February 11, 2024 22:15
@ronso0
Copy link
Member Author

ronso0 commented Feb 11, 2024

This can be added in a 2.4 point release or in 2.5, I don't mind.

@ronso0 ronso0 changed the title Track menu: add star rating menu Track menu: add star rating Feb 14, 2024
@ronso0 ronso0 added this to the 2.5-beta milestone Feb 21, 2024
@github-actions github-actions bot added the build label Apr 18, 2024
@ronso0 ronso0 marked this pull request as ready for review April 18, 2024 21:51
@ronso0 ronso0 removed the build label Apr 18, 2024
@m0dB
Copy link
Contributor

m0dB commented Apr 20, 2024

LGTM!

@m0dB m0dB merged commit d832120 into mixxxdj:main Apr 20, 2024
13 checks passed
@ronso0 ronso0 deleted the track-menu-stars branch April 20, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change rating for more than one track at once in library view
2 participants