-
Notifications
You must be signed in to change notification settings - Fork 12
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
change look of disabled Slider #478
Comments
Here's what a disabled Slider currently looks like in Graphing Quadratics (a & b sliders). The only visual change is the color of the thumb, and the default is Here's what is desired by the Graphing Quadratics design team. The entire slider component has reduced opacity to indicate that it's disabled. This is consistent with other UI components. @ariel-phet This is a relatively easy change, but I'm unclear on who the stakeholders are. Can you please run this change by whoever needs to sign off? |
Notes to self about changes to Slider that will achieve the desired look, as shown in #478 (comment): SliderThumb:
SliderTrack:
SunConstants:
Slider:
var enabledObserver = function( enabled ) {
self.interruptSubtreeInput();
self.pickable = enabled;
self.cursor = enabled ? options.cursor : 'default';
self.opacity = enabled ? 1 : options.disabledOpacity;
}; |
I believe that @arouinfar was the only sim designer not in the Graphing Quadratics design meeting, phetsims/graphing-quadratics#112. @arouinfar could you please review the proposed change for the look of a disabled slider (see #478 (comment)), and let us know if you have any concerns? |
@pixelzoom I think myself, @arouinfar, @amanda-phet, and @kathy-phet would be the current stakeholders. What have you have done looks correct to me, and what @kathy-phet and company seemed to have in mind. |
Thanks for checking @pixelzoom. I think the proposal with reduced opacity sliders looks nice, and would agree that it is more consistent with other disabled UI components. |
Thanks everyone for the feedback. I will proceed with this change. |
This requires removing enabledProperty from the SliderTrack and SliderThumb APIs. SliderTrack is used exclusively by Slider, but SliderThumb is also used as a supertype by EDIT: Discussed with @jessegreenberg on Slack. Looks like |
Sims that were modified and tested:
|
Changes completed, sims listed in #478 (comment) tested by comparing to published versions. The changes made are as summarized in #478 (comment). @ariel-phet please assign a developer to review. |
I skimmed the change sets and tested in the sun test harness. All looks well. I haven't been following the |
Converting other components (like Slider) to use |
In phetsims/graphing-quadratics#112 and https://docs.google.com/document/d/1OfHhIDuaBt-hhXVtpnJgM3Wm0iByJ7dmXd-2UkphUR4/edit#, we concluded that Slider's disabled "look" is not desirable. The entire slider should gray out by changing opacity, like other UI components (e.g. Checkbox).
Assigning to @ariel-phet to prioritize and assign.
The text was updated successfully, but these errors were encountered: