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
|
|
@ -415,7 +415,11 @@ impl pick_list::StyleSheet for Theme {
|
|||
impl radio::StyleSheet for Theme {
|
||||
type Style = ();
|
||||
|
||||
fn active(&self, _style: Self::Style) -> radio::Appearance {
|
||||
fn active(
|
||||
&self,
|
||||
_style: Self::Style,
|
||||
_is_selected: bool,
|
||||
) -> radio::Appearance {
|
||||
let palette = self.extended_palette();
|
||||
|
||||
radio::Appearance {
|
||||
|
|
@ -427,8 +431,12 @@ impl radio::StyleSheet for Theme {
|
|||
}
|
||||
}
|
||||
|
||||
fn hovered(&self, style: Self::Style) -> radio::Appearance {
|
||||
let active = self.active(style);
|
||||
fn hovered(
|
||||
&self,
|
||||
style: Self::Style,
|
||||
is_selected: bool,
|
||||
) -> radio::Appearance {
|
||||
let active = self.active(style, is_selected);
|
||||
let palette = self.extended_palette();
|
||||
|
||||
radio::Appearance {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue