-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add shave config to editor, and update all color pickers #47
Conversation
This is to solve for #43 |
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, just a few review comments, this mostly looks good!
Should there be default swatches in the ColorPicker?
I think what you did (using the gallery feature colors) was a good idea.
I disabled alpha values for everything but Head Face Shave. Seems like the right thing to do, but some people might like making a transparent person for fun?
Also agree with what you did here.
@@ -255,28 +258,36 @@ const FeatureSelector = ({ | |||
// @ts-expect-error TS doesnt like conditional array vs string | |||
hasMultipleColors ? selectedVal[colorIndex] : selectedVal; | |||
|
|||
let presetColors = hasMultipleColors | |||
? gallerySectionConfig.renderOptions.valuesToRender.map( | |||
(colorList: string[]) => colorList[colorIndex], |
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.
I'll fix this when I merge in a minute, but there's no need for this type annotation, TypeScript already knows it's string[]
This PR adds face shave as a configurable option in the editor, and changes all color pickers on the editor to resemble other newly updated ZenGM color pickers (with components stolen from other repo :D )
Items for thought: