use std::marker::PhantomData; use crate::prelude::*; #[derive(Element)] pub struct ToolDivider { state_type: PhantomData, } impl ToolDivider { pub fn new() -> Self { Self { state_type: PhantomData, } } fn render(&mut self, _view: &mut S, cx: &mut ViewContext) -> impl Element { let color = ThemeColor::new(cx); div().w_px().h_3().bg(color.border) } }