indicator.rs
1use gpui2::px;
2
3use crate::prelude::*;
4
5#[derive(Component)]
6pub struct UnreadIndicator;
7
8impl UnreadIndicator {
9 pub fn new() -> Self {
10 Self
11 }
12
13 fn render<V: 'static>(self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {
14 div()
15 .border_2()
16 .border_color(cx.theme().colors().surface)
17 .w(px(9.0))
18 .h(px(9.0))
19 .z_index(2)
20 .bg(cx.theme().status().info)
21 }
22}