text: add metrics and dynamic height
This commit is contained in:
parent
2568b7b1f5
commit
8b93957f31
4 changed files with 84 additions and 28 deletions
|
|
@ -61,7 +61,7 @@ impl PlaceholderNode {
|
|||
let font = format!("monospace {}", width / 10);
|
||||
match text::render_fitting(
|
||||
&ctx,
|
||||
height,
|
||||
Some(height),
|
||||
&font,
|
||||
"Fullscreen",
|
||||
self.toplevel.state.theme.colors.unfocused_title_text.get(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue