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