summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
authorLibravatar hicaru <lich666black@gmail.com>2023-12-12 14:02:15 +0500
committerLibravatar hicaru <lich666black@gmail.com>2023-12-12 14:02:15 +0500
commitb54f27d30deec672012c4a63c65d34641b40a9d5 (patch)
tree2f9871f54d80ea8d274ab319e4da8a19c21399d8 /style/src/theme.rs
parentdd249a1d11c68b8fee1828d58bae158946ee2ebd (diff)
downloadiced-b54f27d30deec672012c4a63c65d34641b40a9d5.tar.gz
iced-b54f27d30deec672012c4a63c65d34641b40a9d5.tar.bz2
iced-b54f27d30deec672012c4a63c65d34641b40a9d5.zip
added svg hover, for styles impl
Diffstat (limited to '')
-rw-r--r--style/src/theme.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs
index 47010728..4af07794 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -909,6 +909,10 @@ impl svg::StyleSheet for Theme {
Svg::Custom(custom) => custom.appearance(self),
}
}
+
+ fn hovered(&self, style: &Self::Style) -> svg::Appearance {
+ self.appearance(style)
+ }
}
impl svg::StyleSheet for fn(&Theme) -> svg::Appearance {
@@ -917,6 +921,10 @@ impl svg::StyleSheet for fn(&Theme) -> svg::Appearance {
fn appearance(&self, style: &Self::Style) -> svg::Appearance {
(self)(style)
}
+
+ fn hovered(&self, style: &Self::Style) -> svg::Appearance {
+ self.appearance(style)
+ }
}
/// The style of a scrollable.