-
Notifications
You must be signed in to change notification settings - Fork 124
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
Emoji picker example improvements #833
Emoji picker example improvements #833
Conversation
Panic should be fixed by #834. |
5405e6d
to
53af04e
Compare
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! This is nice
|
||
flex(( | ||
// TODO: Expose that this is a previous page button to accessibility | ||
button("<-", move |data| { | ||
*data = current_start.saturating_sub(count_per_page); | ||
(current_start != 0).then(|| { |
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.
Ideally, we'd disable the button instead of hiding it, but that's not currently exposed to Xilem (it will likely end up looking similar to transform)
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 had the same thought. Hopefully it won't be too much overhead to implement disabling widgets in the future.
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.
Whilst we're here, could we increase the font size on the buttons (which is possible since #797)
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.
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 also meant the buttons associated with each option)
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.
That makes sense. Pushed. It's definitely even better now.
Also increases the font size
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.
This breaks down a little bit on horizontal Android, but overall that's not worth worrying about. Thanks!
Good to know. A long-term goal is definitely to improve responsiveness. I'll be available to review a follow up PR if you choose to do that. |
This PR includes improvements to page selector.
Specifically it now shows the full percentage range instead of just the start of it, and it hides the buttons when you reach the end of the range.
For some reason it panics when I get to the end.