Add default hovered implementation to svg::StyleSheet
This commit is contained in:
parent
a0103a8693
commit
a5363f788c
1 changed files with 3 additions and 1 deletions
|
|
@ -22,5 +22,7 @@ pub trait StyleSheet {
|
||||||
fn appearance(&self, style: &Self::Style) -> Appearance;
|
fn appearance(&self, style: &Self::Style) -> Appearance;
|
||||||
|
|
||||||
/// Produces the hovered [`Appearance`] of a svg content.
|
/// 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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue