Allow providing a background color in a TextRun

This commit is contained in:
Antonio Scandurra 2023-11-23 18:55:16 +01:00
parent 56d043f671
commit 1ad22231d2
4 changed files with 87 additions and 12 deletions

View file

@ -881,7 +881,7 @@ impl<'a> WindowContext<'a> {
origin: Point<Pixels>,
width: Pixels,
style: &UnderlineStyle,
) -> Result<()> {
) {
let scale_factor = self.scale_factor();
let height = if style.wavy {
style.thickness * 3.
@ -905,7 +905,6 @@ impl<'a> WindowContext<'a> {
wavy: style.wavy,
},
);
Ok(())
}
/// Paint a monochrome (non-emoji) glyph into the scene for the current frame at the current z-index.