summaryrefslogtreecommitdiffstats
path: root/style/src/radio.rs
diff options
context:
space:
mode:
authorLibravatar MG_REX <49415741+ThisIsRex@users.noreply.github.com>2022-05-04 18:56:27 +0300
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-10-05 19:07:02 +0200
commitd95c216b2db76dd812b960d39499dc5e03a81ffc (patch)
tree0ec579b7ec603bfbb2b37495b4fa22d51516b9c7 /style/src/radio.rs
parent2278bade55b2bcd530c8c9a30a22d5f800921e55 (diff)
downloadiced-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.rs4
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;
}