-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance checkbox customizability (#728)
* Enhance checkbox customizability The `Checkbox` component now offers a greater degree of customizability over the appearance of the `checked` state. Previously, the checkmark was not customizable. Now, users may provide their own SVGs if they wish. No existing APIs were broken, but a few new ones were added, namely there's now a `custom_` prefixed static method for each existing method. Also, two new convenience functions, `custom_checkbox` and `custom_labeled_checkboxes` are available. The default checkbox SVG is now made available to users if they want to use it elsewhere, for example in a different component (previously it was a function-local `const`, now it's a `pub const`. The `checkbox` example in the `widget-gallery` has been enhanced with two additional examples showcasing some of the new behavior.
- Loading branch information
1 parent
2aa0e5a
commit be07520
Showing
2 changed files
with
117 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters