summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-21 06:24:18 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-21 06:46:58 +0100
commita5363f788c1d442f0a35f2f450a1ea7de6230de2 (patch)
tree77ae29ffb82a5efb7fe891f44b7e34d88ddd6d8f /style
parenta0103a8693e3a6b3746dc4d4edda471a28848196 (diff)
downloadiced-a5363f788c1d442f0a35f2f450a1ea7de6230de2.tar.gz
iced-a5363f788c1d442f0a35f2f450a1ea7de6230de2.tar.bz2
iced-a5363f788c1d442f0a35f2f450a1ea7de6230de2.zip
Add default `hovered` implementation to `svg::StyleSheet`
Diffstat (limited to 'style')
-rw-r--r--style/src/svg.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/style/src/svg.rs b/style/src/svg.rs
index 5053f9f8..3fe5546b 100644
--- a/style/src/svg.rs
+++ b/style/src/svg.rs
@@ -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)
+ }
}