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        div().w_px().h_3().bg(cx.theme().colors().border)
13    }
14}