Files
novem/src/dashboard.rs
2026-04-21 11:50:04 +01:00

49 lines
1.1 KiB
Rust

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