diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-22 08:40:09 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-11-22 08:40:09 +0100 |
| commit | 5801d7253e199b842270476ee0af8d0d0d0f4dc9 (patch) | |
| tree | 80482c98341f26971bac872b9566e54891431c06 /src/widget/button.rs | |
| parent | chore: update deps (diff) | |
| download | iced-builder-5801d7253e199b842270476ee0af8d0d0d0f4dc9.tar.gz | |
chore: update iced_material
Diffstat (limited to '')
| -rw-r--r-- | src/widget/button.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget/button.rs b/src/widget/button.rs index 5a1975b..e255808 100644 --- a/src/widget/button.rs +++ b/src/widget/button.rs @@ -3,11 +3,11 @@ use iced_material::Theme; use iced_material::button::styled; pub fn danger(theme: &Theme, status: Status) -> Style { - let primary = theme.colors().error; + let error = theme.colors().error; - let foreground = primary.on_error; - let background = primary.color; - let disabled = theme.colors().surface.on_surface; + let foreground = error.text; + let background = error.color; + let disabled = theme.colors().surface.text; let shadow_color = theme.colors().shadow; |
