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:
parent
0d31722589
commit
d8ed7c0721
3 changed files with 3 additions and 5 deletions
|
@ -11,7 +11,6 @@ mod keybinding;
|
||||||
mod label;
|
mod label;
|
||||||
mod list;
|
mod list;
|
||||||
mod popover;
|
mod popover;
|
||||||
mod slot;
|
|
||||||
mod stack;
|
mod stack;
|
||||||
mod tooltip;
|
mod tooltip;
|
||||||
|
|
||||||
|
@ -31,7 +30,6 @@ pub use keybinding::*;
|
||||||
pub use label::*;
|
pub use label::*;
|
||||||
pub use list::*;
|
pub use list::*;
|
||||||
pub use popover::*;
|
pub use popover::*;
|
||||||
pub use slot::*;
|
|
||||||
pub use stack::*;
|
pub use stack::*;
|
||||||
pub use tooltip::*;
|
pub use tooltip::*;
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,9 @@ use gpui::{ImageSource, SharedString};
|
||||||
|
|
||||||
use crate::Icon;
|
use crate::Icon;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
|
||||||
/// A slot utility that provides a way to to pass either
|
/// A slot utility that provides a way to to pass either
|
||||||
/// an icon or an image to a component.
|
/// an icon or an image to a component.
|
||||||
///
|
#[derive(Debug, Clone)]
|
||||||
/// Can be filled with a []
|
|
||||||
pub enum GraphicSlot {
|
pub enum GraphicSlot {
|
||||||
Icon(Icon),
|
Icon(Icon),
|
||||||
Avatar(ImageSource),
|
Avatar(ImageSource),
|
|
@ -18,6 +18,7 @@ mod disableable;
|
||||||
mod fixed;
|
mod fixed;
|
||||||
pub mod prelude;
|
pub mod prelude;
|
||||||
mod selectable;
|
mod selectable;
|
||||||
|
mod slot;
|
||||||
mod styled_ext;
|
mod styled_ext;
|
||||||
mod styles;
|
mod styles;
|
||||||
mod toggleable;
|
mod toggleable;
|
||||||
|
@ -29,6 +30,7 @@ pub use disableable::*;
|
||||||
pub use fixed::*;
|
pub use fixed::*;
|
||||||
pub use prelude::*;
|
pub use prelude::*;
|
||||||
pub use selectable::*;
|
pub use selectable::*;
|
||||||
|
pub use slot::*;
|
||||||
pub use styled_ext::*;
|
pub use styled_ext::*;
|
||||||
pub use styles::*;
|
pub use styles::*;
|
||||||
pub use toggleable::*;
|
pub use toggleable::*;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue