Fix underline flickering (#35989)
Closes #35559 Release Notes: - Fixed underline flickering
This commit is contained in:
parent
76b95d4f67
commit
56c4992b9a
2 changed files with 3 additions and 3 deletions
|
@ -476,7 +476,7 @@ pub(crate) struct Underline {
|
||||||
pub content_mask: ContentMask<ScaledPixels>,
|
pub content_mask: ContentMask<ScaledPixels>,
|
||||||
pub color: Hsla,
|
pub color: Hsla,
|
||||||
pub thickness: ScaledPixels,
|
pub thickness: ScaledPixels,
|
||||||
pub wavy: bool,
|
pub wavy: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Underline> for Primitive {
|
impl From<Underline> for Primitive {
|
||||||
|
|
|
@ -2814,7 +2814,7 @@ impl Window {
|
||||||
content_mask: content_mask.scale(scale_factor),
|
content_mask: content_mask.scale(scale_factor),
|
||||||
color: style.color.unwrap_or_default().opacity(element_opacity),
|
color: style.color.unwrap_or_default().opacity(element_opacity),
|
||||||
thickness: style.thickness.scale(scale_factor),
|
thickness: style.thickness.scale(scale_factor),
|
||||||
wavy: style.wavy,
|
wavy: if style.wavy { 1 } else { 0 },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2845,7 +2845,7 @@ impl Window {
|
||||||
content_mask: content_mask.scale(scale_factor),
|
content_mask: content_mask.scale(scale_factor),
|
||||||
thickness: style.thickness.scale(scale_factor),
|
thickness: style.thickness.scale(scale_factor),
|
||||||
color: style.color.unwrap_or_default().opacity(opacity),
|
color: style.color.unwrap_or_default().opacity(opacity),
|
||||||
wavy: false,
|
wavy: 0,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue