From 2434a77dbf07a313a0ecd06311f9511f77adb302 Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:05:26 +0100 Subject: [PATCH] ui: Fix modals not using UI font and text color (#50208) The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in #49995 ### Before image ### After image Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --- crates/workspace/src/multi_workspace.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/workspace/src/multi_workspace.rs b/crates/workspace/src/multi_workspace.rs index 1c1426ee56f1a4e0220b222ec2a362257c0cd1dd..d58101f8b5c266fafa2120d8fe58634dc2414762 100644 --- a/crates/workspace/src/multi_workspace.rs +++ b/crates/workspace/src/multi_workspace.rs @@ -723,6 +723,9 @@ impl Render for MultiWorkspace { None }; + let ui_font = theme::setup_ui_font(window, cx); + let text_color = cx.theme().colors().text; + let workspace = self.workspace().clone(); let workspace_key_context = workspace.update(cx, |workspace, cx| workspace.key_context(cx)); let root = workspace.update(cx, |workspace, cx| workspace.actions(h_flex(), window, cx)); @@ -731,6 +734,8 @@ impl Render for MultiWorkspace { root.key_context(workspace_key_context) .relative() .size_full() + .font(ui_font) + .text_color(text_color) .on_action(cx.listener(Self::close_window)) .on_action( cx.listener(|this: &mut Self, _: &NewWorkspaceInWindow, window, cx| {