-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 rgb presentation for cue colors with "no color" migration #2398
Closed
Closed
Changes from 46 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
be0f798
Create HotcueColorPalette class
ferranpujolcamins ff6602c
Add methods to store QColor in the config
ferranpujolcamins 594e091
Add class to store HotcueColorPalette in userconfig
ferranpujolcamins 746a2d0
Add tests for color config methods
ferranpujolcamins 6816b04
Make Cue related code use QColor
ferranpujolcamins 5d05386
Migrate hotcue color id to RGBA in DB
ferranpujolcamins 1263a48
Remove PredefinedColorRepresentation
ferranpujolcamins 1243b80
Make UserSettings available in ControllerEngine
ferranpujolcamins 6c45087
Remove PredefinedColors from controller scripts
ferranpujolcamins c1ecfe1
Remove PredefinedColor
ferranpujolcamins 81db977
Update midi-components library
ferranpujolcamins d58fadb
Avoid constructing HotcueColorPaletteSettings every time its used
ferranpujolcamins cfd7b15
Change test names
ferranpujolcamins 6447375
Reorder constructor parameters
ferranpujolcamins 4f1e138
Rename member variable
ferranpujolcamins db0d7fe
Rename some color related classes
ferranpujolcamins 7d4f254
Remove cues tab on TrackInfo
ferranpujolcamins 2572916
Add QColorDialog to ColorMenu
ferranpujolcamins 46c02fd
Set hotcue color to the first predefined color
ferranpujolcamins 06f6750
Set hotcue color CO to -1 when no hotcue is loaded
ferranpujolcamins e67a6ed
Make hotcue skin buttons use the cue color
ferranpujolcamins cdc40f4
Pass UserSettings to Controller constructor
ferranpujolcamins 23caf07
Format code
ferranpujolcamins 5b9f08b
Rename members
ferranpujolcamins 2120185
Change string literal
ferranpujolcamins 374e779
Allow skins to configure text color depending on background
ferranpujolcamins a5ee198
Highlight hotcue buttons when hovered
ferranpujolcamins a0646fa
Fix Shade hotcue buttons color
ferranpujolcamins 2688916
Make hotcue button hover highlighting configurable
ferranpujolcamins 844ab4c
Fix auto_hotcue_colors not assigning first color
ferranpujolcamins c96bc32
Use orange as default Cue color, keep Black as default in database an…
daschuer c64ff42
Respect auto_hotcue_colors when loading cues from database
daschuer 73339cf
Move getDefaultColor() to HotcueColorPaletteSettings
daschuer c70b66c
Merge remote-tracking branch 'upstream/master' into new_colors_impl2
daschuer ba0e9b3
Merge remote-tracking branch 'upstream/master' into new_colors_impl2
daschuer d314ac3
Mask alpha channel and use light weight QRgb where possible
daschuer 8cdf264
Allow to select a default color
daschuer 227b702
Use Skin default hot cue color by default
daschuer f07ff0d
Fix merge issues with LatNight skin
daschuer 11421fc
Store selected default color as cue color
daschuer 86b1fcc
Show message box that explains storing the default Hotcue color
daschuer 4818acf
Show colors in hotcue default color combobox
daschuer 42c6c01
Merge remote-tracking branch 'upstream/master' into new_colors_impl2
daschuer 06014b1
Added colorconfig_test to CMakeList.txt and fix it
daschuer ddfbf1b
define the off palette default color at a single place
daschuer 3d96a85
Added HotcueColorPaletteSettings::PaletteIndex
daschuer 098fdcf
Improve default cue explaination text.
daschuer 5405487
Merge remote-tracking branch 'upstream/master' into new_colors_impl2
daschuer 5b589cf
Fix readability and other minor changes
daschuer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -480,5 +480,30 @@ METADATA | |
position INTEGER | ||
); | ||
</sql> | ||
</revision> | ||
</revision> | ||
<revision version="31" min_compatible="3"> | ||
<description> | ||
Convert the PredefinedColor id to the actual RGBA value. | ||
</description> | ||
<sql> | ||
<!-- No Color becomes black 0x000000 --> | ||
UPDATE cues SET color=0 WHERE color=0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SQLite understands hex numbers and we should use this notation here: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool, I was not aware of this. |
||
<!-- Red 0xC50A08 --> | ||
UPDATE cues SET color=12913160 WHERE color=1; | ||
<!-- Green 0x32BE44 --> | ||
UPDATE cues SET color=3325508 WHERE color=2; | ||
<!-- Blue 0x0044FF--> | ||
UPDATE cues SET color=17663 WHERE color=3; | ||
<!-- Yellow 0xF8D200 --> | ||
UPDATE cues SET color=16306688 WHERE color=4; | ||
<!-- Celeste 0x42D4F4--> | ||
UPDATE cues SET color=4379892 WHERE color=5; | ||
<!-- Magenta 0xAF00CC --> | ||
UPDATE cues SET color=11469004 WHERE color=6; | ||
<!-- Pink 0xFCA6D7 --> | ||
UPDATE cues SET color=16557783 WHERE color=7; | ||
<!-- White 0xF2F2FF --> | ||
UPDATE cues SET color=15921919 WHERE color=8; | ||
</sql> | ||
</revision> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
RGB