From f50d4b351ca53f7cb6674a68bbdace791dbfe680 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 27 Jun 2024 19:32:56 +0800 Subject: [PATCH] Set default text_color for workspace. --- crates/workspace/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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))