-
-
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
Library: resize the Played checkbox and BPM lock with the library font #4050
Conversation
Please test this on Linux, Windows (@JoergAtGithub ?) and macOS (@foss- ?) if this works in general. Meanwhile I'll test if the Played checkbox needs some adjustment. |
@foss- Do you have any screens showing the previous state? |
I do not want to go back to pre 2.3 versions to avoid problems. But I am certain that lock icon previously had the size from your screenshot for this PR. |
Of course, I thought maybe you have still some screenshots somewere. Can you please reset the mac app scaling to 100% and share a screenshot with that? Then, if you don't mind, please try the current build artifact and share a screenshot: I made the BPM and Played icons as big as those in the main menus on other OS, and the Played checkbox is now also a SVG instead of a css border. |
I'll test this on Windows myself soonish. |
back to expected size on macOS 11.4, mixxx 2.3.0-21-g26af2937c5 (HEAD) Played column however has changed and is now showing a play counter. I am not sure if that is expected. that seems to be the total plays while in earlier versions I thought it was an indicator of whether a track has been playing during current set or not (see previous screenshots). |
It's both, like ever since : ) you're column was to narrow to show the counter. Played checkbox is now restored, I did too much cleanup ;) If you can confirm it looks fine on macOS and Windows (also try changing the library font size as this is the actual purpose of this PR) I'll change the other skins, too. |
uff, embarassing, that was caused by a left-over comma in the wrong place... @JoergAtGithub Looks like you adjusted the lib row height, not the font size ; ) |
okay, thanks for testing! |
This broke the checkboxes in the right-click menu of track header view: Narrowed down with git bisect:
|
whoopsy.. |
This should resize the 'Played' checkbox and the BPM lock icon to match the library font.
(another snippet to fix https://bugs.launchpad.net/mixxx/+bug/1736001)
This works well for library font sizes up to 200% of the original system font's size. Above that, the indicators start to overlap the item text because the painter rectangle is not resized (also depending on the system font size).
Admittedly this can be considered a stupid hack, but I have not found a more efficient way, and the solution should be fine for now.
For the BPM delegate this could be done in paintItem() by resizing the painter rectangle, but I didn't find a way to access the Played indicator like that.
System 11pt (Qt5 Settings 11pt), library 22pt
This PR
2.3