mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
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:
parent
6b9ddbfef2
commit
84a44bef8a
@ -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)))
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user