-
Notifications
You must be signed in to change notification settings - Fork 71
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
[SDK] Create ability to determine the affects of a color theme change #1052
Comments
Talked with @lwnoble yesterday and got some clarifications as to how the Theme Elements in a ColorTheme should pair with the backgrounds.
|
Started looking at the flow for a colorized button change. This is what I've come up with so far: Theme Builder Flow for Button Color ChangeFlow
Display of Required/Suggested ChangesHow can we structure the data coming from the SDK that will be displayed by the UI in a modal containing suggested changes that the user will have to accept or reject/cancel?
Need to figure out
QuestionsFor @lwnoble:
|
Been thinking on this. I do not think that this can be handled through notifications generated to the color theme from the properties when the user tries to change them. For example, currently, if the user has filled out a color theme completely and then changes the primary color, the ColorTheme will be notified that the primary color changed and it will zero out the property values for everything potentially affected by that change (also disabling any other properties that have dependencies on those cleared out properties). This means that the ColorTheme, while no longer complete, does not contain any non-compliant values, just uninitialized values. Also keep in mind that currently, the ColorTheme properties like primary color can't be changed once the ColorTheme is saved/activated. So the ColorTheme can not become non-compliant and thus downstream properties like hotlink color or input field background color cannot be non-compliant. In this future V2 vision, if the primary color changes and we were handling this with notifications to primary property listeners, the user could get into a bad place. With UI only, we could potentially block off avenues for the user so that they couldn't get into the weeds and the UI could force them to regain compliance before continuing (e.g. the accept/reject popup). But Theme Builder SDK is a standalone entity. There may not be a UI, so we can't restrict user paths in this way. So what can we do? Here are some thoughts I've been contemplating. Possible approaches:
|
|
Problem/Concern
This issue is to investigate, design and code how to build a dependency tree that can be used to determine the downstream affects of a color theme change.
Some questions that may need to be answered:
Proposed Solution
The text was updated successfully, but these errors were encountered: