Skip to content

Conversation

@cameronwhite
Copy link
Member

This is some prep work for #1791 to make the ColorPickerSlider more encapsulated, so we can change its implementation to fix some of its interaction issues

…s focus

This was already used in ToolbarComboBox, and can be shared with the color picker slider to eliminate some hacky code
This allows us to start moving more of the logic to be encapsulated within the widget
This is based on the enum for the slider's color component, so the logic for updating it based on the slider should live there too (same for the gradient functions). This means that the slider widget can just provide a public property for setting the overall color and listening for color changes.

Also removed the settings struct, which became small and can be replaced by regular parameters to the constructor
@cameronwhite cameronwhite marked this pull request as ready for review January 10, 2026 03:46
@cameronwhite cameronwhite merged commit 5949741 into master Jan 10, 2026
13 checks passed
@cameronwhite cameronwhite deleted the refactor/color-picker-slider branch January 10, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants