Implement Tinted buttons and selected_style for buttons
This commit is contained in:
parent
e5af1cb9a2
commit
9d4d58a915
6 changed files with 88 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue