From 84a44bef8a3e922637926ef82798d33e9061d983 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 18 Jun 2024 15:38:11 -0400 Subject: [PATCH] storybook: Use `theme::setup_ui_font` helper function (#13227) This PR updates the storybook to use the new `theme::setup_ui_font` helper function to initialize the UI font. Release Notes: - N/A --- crates/storybook/src/storybook.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/storybook/src/storybook.rs b/crates/storybook/src/storybook.rs index 9458ef4bd6..77cbca099f 100644 --- a/crates/storybook/src/storybook.rs +++ b/crates/storybook/src/storybook.rs @@ -90,8 +90,7 @@ fn main() { ..Default::default() }, move |cx| { - let ui_font_size = ThemeSettings::get_global(cx).ui_font_size; - cx.set_rem_size(ui_font_size); + theme::setup_ui_font(cx); cx.new_view(|cx| StoryWrapper::new(selector.story(cx))) },