tool_divider.rs

 1use crate::prelude::*;
 2
 3#[derive(Component)]
 4pub struct ToolDivider;
 5
 6impl ToolDivider {
 7    pub fn new() -> Self {
 8        Self
 9    }
10
11    fn render<V: 'static>(self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {
12        let theme = theme(cx);
13
14        div().w_px().h_3().bg(theme.border)
15    }
16}