Skip to content
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

Can the homescreen & navbar buttons be rewritten using the new Sun.buttons? #159

Closed
samreid opened this issue Sep 12, 2014 · 12 comments
Closed

Comments

@samreid
Copy link
Member

samreid commented Sep 12, 2014

Can the homescreen & navbar buttons be rewritten using the new Sun.buttons?

@samreid
Copy link
Member Author

samreid commented Sep 12, 2014

Did @jonathanolson do any work on this in scenery/02? I have a vague recollection about something similar.

@samreid
Copy link
Member Author

samreid commented Oct 7, 2014

This relates somewhat to phetsims/sun#94 (comment)

@jonathanolson
Copy link
Contributor

@jonathanolson
Copy link
Contributor

Which might have already been merged back? Were the navbar buttons possible to write with Sun.button?

@samreid
Copy link
Member Author

samreid commented Oct 7, 2014

I asked if the navbar scene selection buttons could be implemented with RadioButtonGroup here: phetsims/sun#127 We still need to address the other joist buttons though. And I thought we backported the ohtwo work you did to joist/01.

@samreid
Copy link
Member Author

samreid commented Oct 7, 2014

Fixing this issue may help with #160

@samreid samreid self-assigned this Oct 8, 2014
@samreid
Copy link
Member Author

samreid commented Oct 8, 2014

In phetsims/sun#94 @pixelzoom proposed that @pixelzoom work on this.

@samreid samreid assigned pixelzoom and unassigned samreid Oct 8, 2014
@samreid
Copy link
Member Author

samreid commented Oct 8, 2014

Here is @pixelzoom comment from phetsims/sun#94

joist is a little more involved. It relies on the old PushButtonDeprecated look for the Home and 'PhET' buttons. Ideally we'd like a version of the sun buttons that take images, but we are unlikely to have that for awhile. In the meantime, I think it would be reasonable to rework/promote PushButtonDeprecated to a simple ImagePushButton. (Consult #37 when creating ImagePushButton.)

Note that the Home and PhET buttons are two of the buttons that should be rewritten to use sun. We could also implement the "screen" icons that appear on the homescreen and in the navbar.

@pixelzoom
Copy link
Contributor

There's no reason to rewrite the home screen and navbar using sun push buttons if RadioButtonGroup is going to handle it (see phetsims/sun#127). Which approach are we taking?

@pixelzoom
Copy link
Contributor

As a result of #170, PhetButton and HomeButton now use sun.NodesPushButton.

The navbar and home screen are still rolling their own buttons:
• NavigationBar uses NavigationBarScreenButton, which uses PushButtonModel and ButtonListener). home screen. Looks like it could be modified to use NodesPushButton.
• HomeScreen is sort of a mess. And it doesn't use anything from sun.

@pixelzoom
Copy link
Contributor

Tackling the home screen and navbar screen icons is going to be a lot of work, more than I have time for. And both the home screen and navbar could benefit from a thorough cleanup. So I'm going to unassign this. If someone else wants to tackle this, go for it.

@pixelzoom pixelzoom removed their assignment Nov 10, 2014
@pixelzoom
Copy link
Contributor

Duplicate of #183, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants