Implement Tinted buttons and selected_style for buttons

This commit is contained in:
Nate Butler 2024-01-05 11:19:58 -05:00
parent e5af1cb9a2
commit 9d4d58a915
6 changed files with 88 additions and 12 deletions

View file

@ -63,6 +63,13 @@ impl Selectable for ToggleButton {
}
}
impl SelectableButton for ToggleButton {
fn selected_style(mut self, style: ButtonStyle) -> Self {
self.base.selected_style = Some(style);
self
}
}
impl Disableable for ToggleButton {
fn disabled(mut self, disabled: bool) -> Self {
self.base = self.base.disabled(disabled);