Implement From<Rgba> for Fill

This commit is contained in:
Nathan Sobo 2024-01-05 17:22:59 -07:00
parent 436a281756
commit aaada7d508
2 changed files with 7 additions and 1 deletions

View file

@ -561,6 +561,12 @@ impl From<Hsla> for Fill {
}
}
impl From<Rgba> for Fill {
fn from(color: Rgba) -> Self {
Self::Color(color.into())
}
}
impl From<TextStyle> for HighlightStyle {
fn from(other: TextStyle) -> Self {
Self::from(&other)