From d95c216b2db76dd812b960d39499dc5e03a81ffc Mon Sep 17 00:00:00 2001 From: MG_REX <49415741+ThisIsRex@users.noreply.github.com> Date: Wed, 4 May 2022 18:56:27 +0300 Subject: Add `is_selected` argument in `radio::StyleSheet` --- style/src/radio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style/src/radio.rs') 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; } -- cgit