use iced::widget::button::{Status, Style}; use iced_material::Theme; use iced_material::button::styled; pub fn danger(theme: &Theme, status: Status) -> Style { let error = theme.colors().error; let foreground = error.text; let background = error.color; let disabled = theme.colors().surface.text; let shadow_color = theme.colors().shadow; styled(background, foreground, disabled, shadow_color, 0, status) }