Move GraphicSlot out of components module (#3444)

This PR moves the `GraphicSlot` definition out of the `components`
module, as it doesn't contain a component.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-11-29 15:29:33 -05:00 committed by GitHub
parent 0d31722589
commit d8ed7c0721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -11,7 +11,6 @@ mod keybinding;
mod label;
mod list;
mod popover;
mod slot;
mod stack;
mod tooltip;
@ -31,7 +30,6 @@ pub use keybinding::*;
pub use label::*;
pub use list::*;
pub use popover::*;
pub use slot::*;
pub use stack::*;
pub use tooltip::*;

View File

@ -2,11 +2,9 @@ use gpui::{ImageSource, SharedString};
use crate::Icon;
#[derive(Debug, Clone)]
/// A slot utility that provides a way to to pass either
/// an icon or an image to a component.
///
/// Can be filled with a []
#[derive(Debug, Clone)]
pub enum GraphicSlot {
Icon(Icon),
Avatar(ImageSource),

View File

@ -18,6 +18,7 @@ mod disableable;
mod fixed;
pub mod prelude;
mod selectable;
mod slot;
mod styled_ext;
mod styles;
mod toggleable;
@ -29,6 +30,7 @@ pub use disableable::*;
pub use fixed::*;
pub use prelude::*;
pub use selectable::*;
pub use slot::*;
pub use styled_ext::*;
pub use styles::*;
pub use toggleable::*;