Add is_selected argument in radio::StyleSheet
This commit is contained in:
parent
2278bade55
commit
d95c216b2d
3 changed files with 15 additions and 7 deletions
|
|
@ -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)
|
||||
};
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue