diff --git a/crates/workspace/src/lib.rs b/crates/workspace/src/lib.rs index eeb0a6b6..9ee11494 100644 --- a/crates/workspace/src/lib.rs +++ b/crates/workspace/src/lib.rs @@ -108,15 +108,14 @@ pub fn open_new( impl Render for Workspace { fn render(&mut self, cx: &mut ViewContext) -> impl IntoElement { - let theme = cx.theme(); - div() .relative() .flex() .flex_1() .flex_col() .size_full() - .bg(theme.background) + .bg(cx.theme().background) + .text_color(cx.theme().foreground) .gap_4() .child( TitleBar::new("main-title", Box::new(crate::CloseWindow))