-
-
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
Make Hotcue RGB colors configurable #2530
Conversation
2001075
to
a0d1724
Compare
b41234d
to
2dc411e
Compare
This is lacking a nice icon for the the preference page, otherwise this is ready to review. |
@ronso0 Do you want to make an icon? Maybe a paintbrush or something like that? |
How about something similar to this: https://emojipedia.org/google/android-4.3/artist-palette/ |
Thank you for the nice little preview. The GUI suits for users who wants to tweak the palette. However this is a rare use case. We should stream line the GUI for the common task to switch to Serato colors. |
The hotcue default color selection can be improved. Did you consider to use the combo box from my proposal? Do we need a way to go back to default orange once another color has been selected? |
Hehee, I was already looking for one.. :) |
We could remove the palette editor from the preferences page and instead add an "edit palettes" button that opens the palette editor ins a separate window. Is that what you had in mind? |
If you want to use a single color, you can just edit the palette and but a "1" next to the color you want (and remove all other number from the "Assign to Hotcue" column). That will color all new cues in that color.
You could just re-add orange to the palette and then do as I described above. I think this allows great flexibility when configuring palettes. IMHO we should even drop the dedicated auto hotcue colors option and make that the default. If you want to make all new cues a single color, you can just configure the palette to your liking and only auto-assign a single color. |
4280a0d
to
f3ca6f6
Compare
I made an svg from the brush tip. |
that seems fine -- the source image you used for this was an open source SVG, right? |
I created the svg by looking a some raster graphics. |
IANAL but sgtm |
...and tweaking the design for the size we need in the Pref window. |
I'll mark this as WIP until #2520 has been merged. |
f3ca6f6
to
5115f1b
Compare
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.
first round of comments. Thanks again for doing all this
Anything else or can we 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.
Just some minor nitpicks
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
@uklotzde Done. |
Debug assertion on shutdown (some line numbers may vary, merged into my personal development branch):
|
I also see a warning during startup:
This should not happen. Either the log level is wrong or we should handle this case gracefully. |
Since the parented_ptr approach caused crashes on shutdown, I switched to a regular pointer and set the QTableView as the parent object of model. According to the Qt docs, this should transfer ownership to the table view when setModel() is called.
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.
Please revert the last commit and keep using parented_ptr. Only the parent m_pTableView
was missing:
m_pModel(make_parented<ColorPaletteEditorModel>(m_pTableView))
Good job, Jan! LGTM |
@Holzhaus It seems I was too slow. Still slow with git. I have just managed to compile this PR. Still interested in any testing from my side? |
it's ok to test still, and if you catch any problems we'll address them for sure! |
Yup, but it make sense to test this on |
OK. Now that I know how to do it I will move to master :) |
No just play around and check if you can define custom cue palettes. I just found a little bug in master tho, so better test #2586. |
Follow up to #2520. This adds multiple predefined color palettes and a preferences page to select one.