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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,8 +90,7 @@ fn main() {
..Default::default() ..Default::default()
}, },
move |cx| { move |cx| {
let ui_font_size = ThemeSettings::get_global(cx).ui_font_size; theme::setup_ui_font(cx);
cx.set_rem_size(ui_font_size);
cx.new_view(|cx| StoryWrapper::new(selector.story(cx))) cx.new_view(|cx| StoryWrapper::new(selector.story(cx)))
}, },