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:
@@ -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::*;
|
||||
|
||||
|
||||
@@ -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),
|
||||
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user