diff options
author | 2022-05-04 18:56:27 +0300 | |
---|---|---|
committer | 2022-10-05 19:07:02 +0200 | |
commit | d95c216b2db76dd812b960d39499dc5e03a81ffc (patch) | |
tree | 0ec579b7ec603bfbb2b37495b4fa22d51516b9c7 /style/src/radio.rs | |
parent | 2278bade55b2bcd530c8c9a30a22d5f800921e55 (diff) | |
download | iced-d95c216b2db76dd812b960d39499dc5e03a81ffc.tar.gz iced-d95c216b2db76dd812b960d39499dc5e03a81ffc.tar.bz2 iced-d95c216b2db76dd812b960d39499dc5e03a81ffc.zip |
Add `is_selected` argument in `radio::StyleSheet`
Diffstat (limited to '')
-rw-r--r-- | style/src/radio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/style/src/radio.rs b/style/src/radio.rs index a4d4a83b..d14ea33e 100644 --- a/style/src/radio.rs +++ b/style/src/radio.rs @@ -15,7 +15,7 @@ pub struct Appearance { pub trait StyleSheet { type Style: Default + Copy; - fn active(&self, style: Self::Style) -> Appearance; + fn active(&self, style: Self::Style, is_selected: bool) -> Appearance; - fn hovered(&self, style: Self::Style) -> Appearance; + fn hovered(&self, style: Self::Style, is_selected: bool) -> Appearance; } |