WIP
This commit is contained in:
parent
8dafd5f1f3
commit
3f74f75dee
6 changed files with 440 additions and 30 deletions
22
crates/ui2/src/elements/indicator.rs
Normal file
22
crates/ui2/src/elements/indicator.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
use gpui2::px;
|
||||
|
||||
use crate::prelude::*;
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct UnreadIndicator;
|
||||
|
||||
impl UnreadIndicator {
|
||||
pub fn new() -> Self {
|
||||
Self
|
||||
}
|
||||
|
||||
fn render<V: 'static>(self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {
|
||||
div()
|
||||
.border_2()
|
||||
.border_color(cx.theme().colors().surface)
|
||||
.w(px(9.0))
|
||||
.h(px(9.0))
|
||||
.z_index(2)
|
||||
.bg(cx.theme().status().info)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue