Skip to content

Toggler Widget #528

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

Closed
Kaiden42 opened this issue Sep 15, 2020 · 1 comment · Fixed by #535
Closed

Toggler Widget #528

Kaiden42 opened this issue Sep 15, 2020 · 1 comment · Fixed by #535
Labels
feature New feature or request

Comments

@Kaiden42
Copy link
Contributor

I've played around with implementing my own widgets and came up with a working draft of a Toggler widget.

Bildschirmfoto vom 2020-09-15 15-51-46

Would you be interested in adding this to Iced?

The background and foreground colors of the Toggler can be fully customized, as you can see in the picture. However, it is currently not renderer-agnostic and I haven't implemented a support for Iced-web yet.

@hecrj hecrj added the feature New feature or request label Sep 18, 2020
@hecrj
Copy link
Member

hecrj commented Sep 18, 2020

Yes! I think this could be a great addition to the built-in widgets. Feel free to open a PR!

The API should be very similar to a Checkbox, probably only differing in the styling. You should be able to use its implementation as a guide to make it renderer-agnostic.

If you want me to, I could also bring it to the finish line myself (once I clear the backlog... 😅).

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

Successfully merging a pull request may close this issue.

2 participants