Allow providing a background color in a TextRun
This commit is contained in:
parent
56d043f671
commit
1ad22231d2
4 changed files with 87 additions and 12 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue