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