WIP
This commit is contained in:
parent
98d03f6e7a
commit
637cff3ebd
22 changed files with 206 additions and 267 deletions
|
@ -152,8 +152,8 @@ pub struct Themed<E> {
|
|||
impl<V, E> Component<V> for Themed<E>
|
||||
where
|
||||
V: 'static,
|
||||
E: 'static + Element<V> + Send + Sync,
|
||||
E::ElementState: Send + Sync,
|
||||
E: 'static + Element<V> + Send,
|
||||
E::ElementState: Send,
|
||||
{
|
||||
fn render(self) -> AnyElement<V> {
|
||||
AnyElement::new(self)
|
||||
|
@ -163,10 +163,10 @@ where
|
|||
#[derive(Default)]
|
||||
struct ThemeStack(Vec<Theme>);
|
||||
|
||||
impl<V, E: 'static + Element<V> + Send + Sync> Element<V> for Themed<E>
|
||||
impl<V, E: 'static + Element<V> + Send> Element<V> for Themed<E>
|
||||
where
|
||||
V: 'static,
|
||||
E::ElementState: Send + Sync,
|
||||
E::ElementState: Send,
|
||||
{
|
||||
type ElementState = E::ElementState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue