Enable buffer font size adjustment in zed2 (#3523)

This commit is contained in:
Max Brunsfeld
2023-12-06 14:15:25 -08:00
committed by GitHub
5 changed files with 24 additions and 28 deletions
+1 -2
View File
@@ -70,8 +70,7 @@ pub trait StyledExt: Styled + Sized {
/// or other places that text needs to match the user's buffer font size.
fn text_buffer(self, cx: &mut WindowContext) -> Self {
let settings = ThemeSettings::get_global(cx);
self.text_size(settings.buffer_font_size)
self.text_size(settings.buffer_font_size(cx))
}
/// The [`Surface`](ui2::ElevationIndex::Surface) elevation level, located above the app background, is the standard level for all elements