Merge branch 'main' into zed2-workspace
This commit is contained in:
commit
e82d8eb5b8
126 changed files with 9905 additions and 7210 deletions
|
@ -571,6 +571,12 @@ impl<'a> WindowContext<'a> {
|
|||
self.window.rem_size
|
||||
}
|
||||
|
||||
/// Sets the size of an em for the base font of the application. Adjusting this value allows the
|
||||
/// UI to scale, just like zooming a web page.
|
||||
pub fn set_rem_size(&mut self, rem_size: impl Into<Pixels>) {
|
||||
self.window.rem_size = rem_size.into();
|
||||
}
|
||||
|
||||
/// The line height associated with the current text style.
|
||||
pub fn line_height(&self) -> Pixels {
|
||||
let rem_size = self.rem_size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue