-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lp1100882: Add support for track colors #2470
Conversation
Nice! You're right, for multiple seleted files the menu is better, but for single tracks the delayed double-click would be much quicker. Is it complicated to implement this as well? |
Yes, but IMO it makes sense to postpone this until we have support for multiple palettes, which will probably be part of the QColor migration I think. Otherwise we might end up with a lot more work.
I think this should be possible, I'll have to implement an editor class for the |
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 would suggest that we make the color optional, not only in the database but also in the domain model. Let's not repeat the same mistake twice that happened with the cue colors. This time we have the chance to apply the most flexible and versatile approach from the beginning.
Thanks for starting to work on this long requested feature. How could we let users filter the library table by track color? |
Requiring exactly spelled colornames would probably too errorprone (or take too long?) |
Here's an idea, maybe a bad one: use the track color for waveform (scrolling + overview) background color. |
I marked this as WIP. Apart from figuring out how to store the colors (#2472), this also lacks a way to reset the track color to uncolored/transparent. |
Very nice feature. |
Since this PR is marked WiP you may rebase it and clean up the commit history. |
This adds a new column for color-coding tracks. Since opening a color picker when left-clicking a cell might be clunky and does now allow changing multiple tracks at once, a right-click context menu entry was used instead. Launchpad issue: https://bugs.launchpad.net/mixxx/+bug/1100882
ee5255c
to
2049f26
Compare
This feature could serve as a blueprint for the cue colors. It doesn't suffer from legacy issues and doesn't have to deal with backwards compatibility. We can explore how cue colors should have been implemented from the start. Maybe we find a migration path to align both solutions as far as possible. |
Please have a look at ed3eca7 and let me know what you think. I think we should add a |
Feel free to review now. Let me know if anything is missing. Ideally we'd be able to have another palette for track colors but I don't want to mess around that because it would cause lots of merge conflicts with the cue color PR(s). |
I hope this is ready to merge now ;-) |
nice! |
AppVeyor CI failure is unrelated. LGTM. Really nice work that shows how a new feature should be integrated, i.e. with a solid foundation and clean abstractions. The resulting code is readable and maintainable. More opinions since this will trigger a database schema update? |
Let's go!! |
When trying to edit the color in the library table I got:
|
Is this a non-issue? From the conversation at #2515 I discern that this was caused by a local DB schema version conflict (maybe from some PR) and is not an actual problem present in master, right? |
I have just started with a new .mixxx folder and it turns out that the issue is gone. |
Oh, I never tried this. After switching to a text edit box Mixxx becomes inaccessible with a two-sided resize arrow as cursor. Probably a Wayland issue? We should disable inline editing of this column. |
Not only inaccessible but unresponsive with a debug assertion:
Exact line numbers may differ from master! |
In the track table, tracks' color is changed by highlighting the track, at least in Tango. Is this intended? I found it confusing when first trying this new feature. |
Are you interested in designing a color palette for this? With the changes in #2520 it is now possible to have separate palettes for hotcues and tracks. Here's an example where I used the track color palette from Serato DJ Pro: Patch: 0001-util-color-colorpalette-Add-support-for-Serato-s-tra.patch |
Yup, I'll take a look next week after I'll have built master with the new features. |
This adds a new column for color-coding tracks. Since opening a color
picker when left-clicking a cell might be clunky and does now allow
changing multiple tracks at once, a right-click context menu entry was
used instead.
Launchpad issue: https://bugs.launchpad.net/mixxx/+bug/1100882