Set default text_color for workspace.

This commit is contained in:
Jason Lee 2024-06-27 19:32:56 +08:00
parent 10564f5140
commit f50d4b351c

View file

@ -108,15 +108,14 @@ pub fn open_new(
impl Render for Workspace { impl Render for Workspace {
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement { fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
let theme = cx.theme();
div() div()
.relative() .relative()
.flex() .flex()
.flex_1() .flex_1()
.flex_col() .flex_col()
.size_full() .size_full()
.bg(theme.background) .bg(cx.theme().background)
.text_color(cx.theme().foreground)
.gap_4() .gap_4()
.child( .child(
TitleBar::new("main-title", Box::new(crate::CloseWindow)) TitleBar::new("main-title", Box::new(crate::CloseWindow))