summaryrefslogtreecommitdiffstats
path: root/native/src/widget/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 /native/src/widget/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 'native/src/widget/radio.rs')
-rw-r--r--native/src/widget/radio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs
index c9152d05..cb83f745 100644
--- a/native/src/widget/radio.rs
+++ b/native/src/widget/radio.rs
@@ -230,9 +230,9 @@ where
let mut children = layout.children();
let custom_style = if is_mouse_over {
- theme.hovered(self.style)
+ theme.hovered(self.style, self.is_selected)
} else {
- theme.active(self.style)
+ theme.active(self.style, self.is_selected)
};
{