Add StatusBar component

This commit is contained in:
Marshall Bowers
2023-10-06 18:25:55 -04:00
parent 28d504d7d3
commit b53579858a
5 changed files with 174 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
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, cx: &mut ViewContext<S>) -> impl Element<State = S> {
let theme = theme(cx);
div().w_px().h_3().fill(theme.lowest.base.default.border)
}
}