summaryrefslogtreecommitdiffstats
path: root/style/src/radio.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-10-05 19:15:14 +0200
committerLibravatar GitHub <noreply@github.com>2022-10-05 19:15:14 +0200
commitcd5a5f2ed23da06ea5a972df948fc735916ba7e1 (patch)
tree77ef43ef8d6aa857ec2b1a3b7cd2a26b99905413 /style/src/radio.rs
parent2278bade55b2bcd530c8c9a30a22d5f800921e55 (diff)
parentdbd76ea21c5f5dd8ad16632ba39dc672cec0fcbd (diff)
downloadiced-cd5a5f2ed23da06ea5a972df948fc735916ba7e1.tar.gz
iced-cd5a5f2ed23da06ea5a972df948fc735916ba7e1.tar.bz2
iced-cd5a5f2ed23da06ea5a972df948fc735916ba7e1.zip
Merge pull request #1331 from ThisIsRex/master
`is_selected` property for `Radio` `StyleSheet`
Diffstat (limited to 'style/src/radio.rs')
-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;
}