Split playground into gpui2 and storybook

This commit is contained in:
Nathan Sobo 2023-08-30 16:12:14 -06:00
parent ee11be98e5
commit 3b5ee59273
41 changed files with 175 additions and 2210 deletions

View file

@ -2,7 +2,6 @@ use std::marker::PhantomData;
pub use crate::layout_context::LayoutContext;
pub use crate::paint_context::PaintContext;
use crate::themes::{Theme, Themed};
use anyhow::Result;
use gpui::geometry::vector::Vector2F;
pub use gpui::{Layout, LayoutId};
@ -37,17 +36,6 @@ pub trait Element<V: 'static>: 'static {
phase: ElementPhase::Init,
}))
}
fn themed(self, theme: Theme) -> Themed<V, Self>
where
Self: Sized,
{
crate::themes::Themed {
child: self,
theme,
view_type: PhantomData,
}
}
}
/// Used to make ElementState<V, E> into a trait object, so we can wrap it in AnyElement<V>.