mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
This PR moves the `GraphicSlot` definition out of the `components` module, as it doesn't contain a component. Release Notes: - N/A
12 lines
276 B
Rust
12 lines
276 B
Rust
use gpui::{ImageSource, SharedString};
|
|
|
|
use crate::Icon;
|
|
|
|
/// A slot utility that provides a way to to pass either
|
|
/// an icon or an image to a component.
|
|
#[derive(Debug, Clone)]
|
|
pub enum GraphicSlot {
|
|
Icon(Icon),
|
|
Avatar(ImageSource),
|
|
PublicActor(SharedString),
|
|
}
|