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

regression in main: library track colors no longer appear #12355

Closed
ywwg opened this issue Nov 25, 2023 · 8 comments · Fixed by #12380
Closed

regression in main: library track colors no longer appear #12355

ywwg opened this issue Nov 25, 2023 · 8 comments · Fixed by #12380
Assignees
Milestone

Comments

@ywwg
Copy link
Member

ywwg commented Nov 25, 2023

Bug Description

Track colors have disappeared from the track listing in the main branch. I did a git bisect and the commit that broke it was the QT6 checkbox fix: 1ef4e4d

@fwcd can you take a look?

Version

HEAD

OS

Ubuntu 22.04

@ywwg ywwg added the bug label Nov 25, 2023
@ywwg
Copy link
Member Author

ywwg commented Nov 25, 2023

broken:
image
working:
image

@daschuer daschuer added this to the 2.5.0 milestone Nov 25, 2023
@fwcd
Copy link
Member

fwcd commented Nov 25, 2023

Huh, that's very weird. The way Qt applies styles remains a mystery to me.

@ronso0 Any ideas?

@ronso0
Copy link
Member

ronso0 commented Nov 25, 2023

So, border 0px for #LibraryBPMButton::item is fixing the BPM button, and WTrackTableView::item is actually just for the Played checkbox. Disabling the latter should restore the track color bg, except for the BPM column. Is that the case?

@ronso0
Copy link
Member

ronso0 commented Nov 25, 2023

Guess we also should take a look at the delegates' paint code. Maybe there's room for optimization.

Oh the Played column doesn't have a delegate.

@ywwg
Copy link
Member Author

ywwg commented Nov 26, 2023

Setting only

#LibraryBPMButton::item {
border: 0px;
}

hilariously fixes it for the rest of the row but not the bpm column:

image

@ronso0
Copy link
Member

ronso0 commented Nov 26, 2023

yes, because WTrackTableView::item is the only way to select the Played column but addresses ALL items except the delegates.

I tried a few qss mods last night, but none would fix the icon while having the bg color.
I guess we need to look for the related Qt bug.

@fwcd
Copy link
Member

fwcd commented Nov 26, 2023

Does the highlight color issue occur in Qt 5 builds of main too?

@ronso0 ronso0 added the QT6 label Nov 26, 2023
@ronso0
Copy link
Member

ronso0 commented Nov 26, 2023

Yep, same with Qt5.

@ronso0 ronso0 removed the QT6 label Nov 30, 2023
@ronso0 ronso0 changed the title regression in main, qt6: library track colors no longer appear regression in main: library track colors no longer appear Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants