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
This commit is contained in:
Marshall Bowers
2024-06-18 15:38:11 -04:00
committed by GitHub
parent 6b9ddbfef2
commit 84a44bef8a
+1 -2
View File
@@ -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)))
},