Files
oak-gpui/crates/ui2/src/elements/tool_divider.rs
T
2023-10-19 12:58:17 -04:00

24 lines
534 B
Rust

use std::marker::PhantomData;
use crate::prelude::*;
use crate::theme;
#[derive(Element)]
pub struct ToolDivider<S: 'static + Send + Sync> {
state_type: PhantomData<S>,
}
impl<S: 'static + Send + Sync> ToolDivider<S> {
pub fn new() -> Self {
Self {
state_type: PhantomData,
}
}
fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {
let color = ThemeColor::new(cx);
div().w_px().h_3().bg(theme.lowest.base.default.border)
}
}