Remove ambiguous text_color attributes for Checkbox and Radio

Instead, always use a `StyleSheet`.
This commit is contained in:
Héctor Ramón Jiménez 2022-01-20 18:34:15 +07:00
parent a3744ec97a
commit 93285d85b0
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 21 additions and 33 deletions

View file

@ -116,6 +116,7 @@ mod dark {
dot_color: ACTIVE,
border_width: 1.0,
border_color: ACTIVE,
text_color: None,
}
}

View file

@ -343,6 +343,7 @@ mod style {
dot_color: ACTIVE,
border_width: 1.0,
border_color: ACTIVE,
text_color: None,
}
}
@ -528,10 +529,10 @@ mod style {
background: if is_checked { ACTIVE } else { SURFACE }
.into(),
checkmark_color: Color::WHITE,
text_color: Color::BLACK,
border_radius: 2.0,
border_width: 1.0,
border_color: ACTIVE,
text_color: None,
}
}