gui: make the trash button prettier

After feedback from Kevin.
This commit is contained in:
Antoine Poinsot 2023-12-13 13:58:22 +01:00
parent b9cf62d71b
commit 2b5fe01cf0
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304
2 changed files with 15 additions and 10 deletions

View File

@ -179,7 +179,9 @@ impl Launcher {
*choice,
),
))
.style(theme::Button::Destructive),
.style(
theme::Button::SecondaryDestructive,
),
"Delete wallet",
tooltip::Position::Right,
))

View File

@ -462,6 +462,7 @@ pub enum Button {
Primary,
Secondary,
Destructive,
SecondaryDestructive,
Transparent,
TransparentBorder,
Border,
@ -483,14 +484,16 @@ impl button::StyleSheet for Theme {
border_color: color::GREY_7,
text_color: color::GREY_2,
},
Button::Secondary | Button::Border => button::Appearance {
shadow_offset: iced::Vector::default(),
background: iced::Color::TRANSPARENT.into(),
border_radius: 25.0,
border_width: 1.0,
border_color: color::GREY_7,
text_color: color::GREY_2,
},
Button::Secondary | Button::SecondaryDestructive | Button::Border => {
button::Appearance {
shadow_offset: iced::Vector::default(),
background: iced::Color::TRANSPARENT.into(),
border_radius: 25.0,
border_width: 1.0,
border_color: color::GREY_7,
text_color: color::GREY_2,
}
}
Button::Destructive => button::Appearance {
shadow_offset: iced::Vector::default(),
background: iced::Color::TRANSPARENT.into(),
@ -560,7 +563,7 @@ impl button::StyleSheet for Theme {
border_color: iced::Color::TRANSPARENT,
text_color: color::LIGHT_BLACK,
},
Button::Destructive => button::Appearance {
Button::Destructive | Button::SecondaryDestructive => button::Appearance {
shadow_offset: iced::Vector::default(),
background: color::RED.into(),
border_radius: 25.0,