-
-
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
Use trackcolor for whole row #2539
Use trackcolor for whole row #2539
Conversation
These kind of features are the reason why we urgently need #2538 to move the generic, reusable part of the code out of |
For tracks without an assigned track color this technique could also be applied for the (background) color extracted from the cover image in #2524. I will try how it looks like. ...Two different color sources might be confusing and adding a configuration option to switch the row color between track color, cover art color, or both might be overkill. Nevertheless we could hard-code the logic and only use track color by default. |
5325a6c
to
a873f7f
Compare
Done. |
This is a nice extension of the track color feature, thanks! |
This works well for our dark skins. |
I don't see a straightforward way to pass this value from WLibrary to BaseSqlTableModel. This would be nice to have, but we don't have any daylight skin right now, so let's keep this PR small. We can just add this later on if it becomes necessary. . |
I have an idea how to do this. But first let's get this PR merged and |
It will also e helpful for darker skins. But yeah, let's merge this and add it later. |
An idea for further improvement: |
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.
GUI part lgtm.
Another idea for further improvement in the future: Instead of painting the row background, selected rows should have a border around them (just like when hovering the prelisten controls). That we we could show the track color as row background even for selected rows. |
Debug assertion is still not fixed yet:
|
Deselecting the color does not trigger a repaint of the row. Only after selecting a different row the color is updated. |
What do you mean be deselecting the color? |
True, didn't notice it due to the color column being out oof view: if you select the top-left default color the row doesn't get repainted immediately but after another rows is selected. |
I think |
Seems I didn't check carefully enough earlier: in Shade I noticed that the style of Unfortunately I did not yet have the time to restore my local git folder, so I can't supply a PR for Shade right now. |
I tested master after the discovering the bug to do a cross check before reporting it. Everything worked as expected. Now I tested master again and it didn't work. This is strange. But the bug was definitely not caused by by this PR! |
@ronso0 Does that mean that the bug is caused by the skins? Probably yes, because it only occurs when selecting no color. When selecting an actual color table cells are updated immediately. This should be fixed in a separate PR. @Holzhaus Let's revert or better drop the last commit and then everything is ready for merge. |
@uklotzde We're talking about different issues: |
efee00c
to
5e966ee
Compare
Done. |
@Holzhaus Thanks. Let's not introduce any workarounds before we know the actual cause. I noticed that sometimes if I select no color it is not picked. A moment later everything works as expected. Strange. The issue might also be related to the color picker. |
LGTM. We don't need to wait on CI builds again. |
The track color column is easy to overlook (especially if it's next to the cover art). Hence, I thought it might be cool paint the whole row in a dark shade of track color (similar to what Traktor does: https://www.youtube.com/watch?v=PV4VI-FtaLg)
This even allows using track colors on small screens where the color column takes too much space: