Add default hovered implementation to svg::StyleSheet

This commit is contained in:
Héctor Ramón Jiménez 2024-02-21 06:24:18 +01:00
parent a0103a8693
commit a5363f788c
No known key found for this signature in database
GPG key ID: 0BF4EC06CD8E5686

View file

@ -22,5 +22,7 @@ pub trait StyleSheet {
fn appearance(&self, style: &Self::Style) -> Appearance;
/// Produces the hovered [`Appearance`] of a svg content.
fn hovered(&self, style: &Self::Style) -> Appearance;
fn hovered(&self, style: &Self::Style) -> Appearance {
self.appearance(style)
}
}