tool_divider.rs

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