ZIm/crates/ui/src/components
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
..
avatar Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
button Add wiring for UI density (#11260) 2024-05-01 14:28:52 -04:00
checkbox Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
label new path picker (#11015) 2024-04-26 13:25:25 -06:00
list Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
stories Add DecoratedIcon (#11512) 2024-05-07 16:36:13 -04:00
title_bar Remove extra space right of traffic lights on macOS (#11176) 2024-04-29 16:43:21 -04:00
avatar.rs Add dedicated indicator for showing a muted call participant (#4076) 2024-01-16 16:18:06 -05:00
button.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
checkbox.rs Add CheckboxWithLabel component (#7881) 2024-02-15 21:00:30 -05:00
collapsible_container.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
context_menu.rs Add Editor Controls Menu to Tool Bar (#10655) 2024-04-16 18:03:54 -04:00
disclosure.rs Make clicking ListHeader labels toggle the disclosure (#4140) 2024-01-18 18:21:53 -05:00
divider.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
icon.rs Add DecoratedIcon (#11512) 2024-05-07 16:36:13 -04:00
indicator.rs Clean up Indicator (#11275) 2024-05-01 18:10:35 -04:00
keybinding.rs Break typography styles out of StyledExt (#11013) 2024-04-25 17:42:53 -04:00
label.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
list.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
modal.rs remote projects per user (#10594) 2024-04-23 15:33:09 -06:00
popover.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
popover_menu.rs Incorporate ElementId as part of the Element::id trait method and expose GlobalId (#11101) 2024-04-28 13:59:21 -06:00
right_click_menu.rs Incorporate ElementId as part of the Element::id trait method and expose GlobalId (#11101) 2024-04-28 13:59:21 -06:00
stack.rs Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
stories.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
tab.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
tab_bar.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
title_bar.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
tooltip.rs Break typography styles out of StyledExt (#11013) 2024-04-25 17:42:53 -04:00