-
-
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
Skins: allow custom brightness threshold for hotcue colors #2928
Conversation
43f82fa
to
85c998e
Compare
Now waveforms and overviews can read the The sole purpose is to adjust cue colors to dim PaleMoon theme. Please test! |
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.
Thanks. I can't test properly, because it hangs very long when starting and loading a track doesn't work either, but I doubt this was caused by your changes. Probably this is because this branch is so old. I suggest you rebase on latest 2.3 and also change the target branch to 2.3.
85c998e
to
3ca86b9
Compare
This is based on 2.3 already and FWIW I didn't encounter the issues you did. |
Yes, I got some weird ACPI issues on my new laptop. A reboot fixed them. This is how it looks on my machine. I think we need light hotcue button labels, but other than it it looks fine. |
Okay, good to know :) |
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.
Thank you for this useful PR. I have left some comments.
There are merge conflicts now. |
Because these lines were changed in one branch and removed in the other. You should enable
Then it will look like this:
No idea why this isn't the default. |
Just to let you know: I addressed the comments but didn't push, yet, because I need some continous time to thoroughly test the thresholds with updated hotcue icons and the waveforms. |
bc19a80
to
53c2bc6
Compare
…ks and hotcues, refine light hotcue icons
90 is okay, 80 makes the "6" barely readable. |
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.
you can try a different threshold, set in skin.xml in PaleMoon color scheme |
I'll check if it can be fixed with a brighter font for dark buttons. |
Oh, the first time for quite a while I got a "Build passed" message from our friend Travis :) |
The algorithm is okay, I tweaked the threshold to I think that has better contrast, but you decide. Just let me know, so we can merge this. |
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.
Thank you.
I get the impression what I'm trying to improve here is not matter of the dim/bright threshold, but it also seems to depend a lot on the screen used and maybe also the algorhythm, because when I tested with Mixxx Hotcue palette yesterday I perceived the Red indeed darker than the Blue. I did check again with https://webaim.org/resources/contrastchecker/ and you're right: with the new threshold we get ~4.1-3 for the Red, Blue, Purple which is considered okay for normal text. Did you try |
Yes, looks good to me. |
Thanks! |
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.
There are some pre-commit issues, please check.
those are about - int getDimBrightThreshold() { return m_dimBrightThreshold; }
+ int getDimBrightThreshold() {
+ return m_dimBrightThreshold;
+ } Either I reformat all surrounding one-liners or we ignore the complaint. I don't care but I'd like to have some consitency in that file. |
I'm okay with reformatting all of them. |
Ready. |
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.
LGTM, thank you
double getGain() const { | ||
return m_gain; | ||
} |
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.
Not your fault, but shouldn't this be CSAMPLE_GAIN
instead of double
? Anyway, fixing this is out of scope for this PR.
The style of WHotcueButton can be adjusted for dim & bright hotcue colors.
In LateNight PaleMoon theme which is rather dim the default brightness threshold
127
doesn't work well; colors are considered 'dark' too early.This change allows to set a custom
<DimBrightThreshold>
(int 0-256) for the following widgets:In the PaleMoon example I used the default 127 in the overview to keep the contrasting marker strokes.
(see also #3003)