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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue