ZIm/crates/ui/src
Nate Butler 47ca343803
Add DecoratedIcon (#11512)
This allows us to create icons with dynamic decorations drawn on top
like these:


![image](https://github.com/zed-industries/zed/assets/1714999/1d1a22df-8f90-47f2-abbd-ed7afa8fc641)

### Examples:

```rust
div()
    .child(DecoratedIcon::new(
        Icon::new(IconName::Bell).color(Color::Muted),
        IconDecoration::IndicatorDot,
    ))
    .child(
        DecoratedIcon::new(Icon::new(IconName::Bell), IconDecoration::IndicatorDot)
            .decoration_color(Color::Accent),
    )
    .child(DecoratedIcon::new(
        Icon::new(IconName::Bell).color(Color::Muted),
        IconDecoration::Strikethrough,
    ))
    .child(
        DecoratedIcon::new(Icon::new(IconName::Bell), IconDecoration::X)
            .decoration_color(Color::Error),
    )
```

Release Notes:

- N/A
2024-05-07 16:36:13 -04:00
..
components Add DecoratedIcon (#11512) 2024-05-07 16:36:13 -04:00
styles Replace rem size literals with constant (#11272) 2024-05-01 17:46:43 -04:00
utils Avoid failing format test with current date (#10068) 2024-04-02 10:37:14 +02:00
clickable.rs Document ui crate traits 2024-01-09 14:15:25 -05:00
components.rs New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00
disableable.rs Fix possessive "its" in docs and comments (#3998) 2024-01-10 10:09:48 -05:00
fixed.rs Document ui crate traits 2024-01-09 14:15:25 -05:00
prelude.rs Add wiring for UI density (#11260) 2024-05-01 14:28:52 -04:00
selectable.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
styled_ext.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
styles.rs Add wiring for UI density (#11260) 2024-05-01 14:28:52 -04:00
ui.rs Document UI modules 2024-01-09 12:57:12 -05:00
utils.rs Document UI modules 2024-01-09 12:57:12 -05:00
visible_on_hover.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00