Align settings and workspaces native surfaces

This commit is contained in:
ZacharyZhang-NY committed 2026-04-19 14:16:01 -04:00
1 parent e1b7f52444
commit 0a5be5ea97
3 files changed
+245 -94

No files matched your search

@@ -220,37 +220,6 @@ impl AppRoot {
Err(error) => self.set_status(error.to_string(), cx),
}
}
fn metric_card(
&self,
label: impl Into<String>,
value: String,
detail: impl Into<String>,
) -> impl IntoElement + '_ {
let label = label.into();
let detail = detail.into();
div()
.flex_1()
.p_4()
.gap_2()
.border_1()
.rounded_md()
.border_color(theme::panel_border())
.bg(theme::panel())
.child(div().text_sm().text_color(theme::text_muted()).child(label))
.child(
div()
.text_3xl()
.text_color(theme::text_primary())
.child(value),
)
.child(
div()
.text_sm()
.text_color(theme::text_muted())
.child(detail),
)
}
}
impl Render for AppRoot {