blob: 5a1975be2533e128f8460fb73e67ed3f8c360915 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use iced::widget::button::{Status, Style};
use iced_material::Theme;
use iced_material::button::styled;
pub fn danger(theme: &Theme, status: Status) -> Style {
let primary = theme.colors().error;
let foreground = primary.on_error;
let background = primary.color;
let disabled = theme.colors().surface.on_surface;
let shadow_color = theme.colors().shadow;
styled(background, foreground, disabled, shadow_color, 0, status)
}
|