Add is_selected argument in radio::StyleSheet

This commit is contained in:
MG_REX 2022-05-04 18:56:27 +03:00 committed by Héctor Ramón Jiménez
parent 2278bade55
commit d95c216b2d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 15 additions and 7 deletions

View file

@ -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;
}