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

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