Files
novem/src/dashboard.rs

49 lines
1.1 KiB
Rust
Raw Normal View History

2026-04-20 15:13:26 +01:00
use gpui::{div, prelude::*};
2026-04-21 11:50:04 +01:00
use crate::{app, theme::Variant};
2026-04-20 15:13:26 +01:00
pub struct Screen {
pub text: gpui::SharedString,
}
impl Render for Screen {
fn render(
&mut self,
_window: &mut gpui::Window,
2026-04-21 11:50:04 +01:00
cx: &mut gpui::Context<Self>,
2026-04-20 15:13:26 +01:00
) -> impl IntoElement {
2026-04-21 11:50:04 +01:00
let theme = app::current_theme(cx);
2026-04-20 15:13:26 +01:00
div()
.flex()
2026-04-21 11:50:04 +01:00
.flex_1()
.flex_row()
.w_full()
.gap_2()
.p_2p5()
.pt_0()
2026-04-20 15:13:26 +01:00
.bg(theme.colors.background)
.justify_center()
.items_center()
.shadow_lg()
.text_xl()
.text_color(theme.colors.text)
.child(
div()
2026-04-21 11:50:04 +01:00
.h_full()
.flex()
.w_1_3()
.bg(theme.colors.surface)
.rounded_lg(),
2026-04-20 15:13:26 +01:00
)
.child(
div()
2026-04-21 11:50:04 +01:00
.h_full()
2026-04-20 15:13:26 +01:00
.flex()
2026-04-21 11:50:04 +01:00
.w_2_3()
.bg(theme.colors.surface)
.rounded_lg(),
2026-04-20 15:13:26 +01:00
)
}
}