zed/crates/ui2
Marshall Bowers c3e7732eab
Add support for optional icon to Button (#3479)
This PR extends `Button` with support for an optional icon to be
displayed next to the label.

As part of this, the functionality for displaying an icon within a
button has been factored out into an internal `ButtonIcon` component.
`ButtonIcon` is now used by both `IconButton` and `Button` to
encapsulate the concerns of an icon that is rendered within a button.

Release Notes:

- N/A
2023-12-01 14:30:38 -05:00
..
docs WIP: Work toward eliminating Component trait 2023-11-18 00:03:23 -07:00
src Add support for optional icon to Button (#3479) 2023-12-01 14:30:38 -05:00
Cargo.toml ui2: Reference theme2 and settings2 crates without the 2 (#3424) 2023-11-28 15:30:29 -05:00