summaryrefslogtreecommitdiff
path: root/src/widget/button.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/button.rs')
-rw-r--r--src/widget/button.rs8
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;