-
Notifications
You must be signed in to change notification settings - Fork 6
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
Move backgroundColor from Screen to ScreenView #807
Comments
Yes, that seems like an oversight to me. It is quite view-like to me. I wonder though if joist needs a more general exploration into its model-view separation. Currently it makes some amount of sense to me to house them on the screen (not that is is best) based on the implementation in Sim.js. What is the view vs model separation in Sim? For example, it has a LookAndFeel which set's its background property based on the screen's Property. If one changed organization, shouldn't the other? For example Line 649 in e0b603f
|
Raising for dev meeting discussion to determine priority, assignees, timeline and whether it will need to be a chip-away. |
KP: Does this affect phet-io API? Should BackgroundColorProperty be in Screen or ScreenView? We took a vote: AV: abstain Leaving unassigned until this is higher priority. Could be done by one person as a chip away. |
While working on phetsims/mean-share-and-balance#3, @marlitas and I were surprised to see that the backgroundColor is defined in Screen rather than ScreenView, since it seems to be a view-specific value. We skimmed the usages of background in Joist and could not see a reason that it has to be in the Screen. (It is used to create default homescreen icons, but that seems like it would be OK to be some other color since it is just a placeholder).
It may be a lot of work to move it to the view, since we would have to update 100+ simulation usage sites. We thought it would be good to mention, even if we decide not to implement it.
Assigning to the responsible dev for joist for feedback, but please feel free to escalate to dev meeting if desired.
The text was updated successfully, but these errors were encountered: