Smooth border color
This commit is contained in:
parent
c369984bf4
commit
9948b10689
@ -492,15 +492,12 @@ pub fn sign_action<'a>(
|
||||
} else {
|
||||
Column::new()
|
||||
.push(
|
||||
card::simple(
|
||||
Column::new()
|
||||
.spacing(20)
|
||||
.width(Length::Fill)
|
||||
.push("Please connect a hardware wallet")
|
||||
.push(button::primary(None, "Refresh").on_press(Message::Reload))
|
||||
.align_items(Alignment::Center),
|
||||
)
|
||||
.width(Length::Fill),
|
||||
Column::new()
|
||||
.spacing(20)
|
||||
.width(Length::Fill)
|
||||
.push("Please connect a hardware wallet")
|
||||
.push(button::primary(None, "Refresh").on_press(Message::Reload))
|
||||
.align_items(Alignment::Center),
|
||||
)
|
||||
.width(Length::Fill)
|
||||
})
|
||||
|
||||
@ -6,6 +6,12 @@ pub const BACKGROUND: Color = Color::from_rgb(
|
||||
0xF8 as f32 / 255.0,
|
||||
);
|
||||
|
||||
pub const BORDER_GREY: Color = Color::from_rgb(
|
||||
0xd0 as f32 / 255.0,
|
||||
0xd7 as f32 / 255.0,
|
||||
0xde as f32 / 255.0,
|
||||
);
|
||||
|
||||
pub const FOREGROUND: Color = Color::WHITE;
|
||||
|
||||
pub const PRIMARY: Color = Color::BLACK;
|
||||
|
||||
@ -86,7 +86,7 @@ impl button::StyleSheet for Style {
|
||||
background: Color::TRANSPARENT.into(),
|
||||
border_radius: 10.0,
|
||||
border_width: 1.2,
|
||||
border_color: color::BACKGROUND,
|
||||
border_color: color::BORDER_GREY,
|
||||
text_color: Color::BLACK,
|
||||
},
|
||||
}
|
||||
|
||||
@ -15,6 +15,8 @@ impl widget::container::StyleSheet for SimpleCardStyle {
|
||||
fn appearance(&self, _style: &Self::Style) -> widget::container::Appearance {
|
||||
widget::container::Appearance {
|
||||
border_radius: 10.0,
|
||||
border_color: color::BORDER_GREY,
|
||||
border_width: 1.0,
|
||||
background: color::FOREGROUND.into(),
|
||||
..widget::container::Appearance::default()
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ impl container::StyleSheet for Style {
|
||||
Self::Sidebar => container::Appearance {
|
||||
background: color::FOREGROUND.into(),
|
||||
border_width: 1.0,
|
||||
border_color: color::SECONDARY,
|
||||
border_color: color::BORDER_GREY,
|
||||
..container::Appearance::default()
|
||||
},
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ impl iced::widget::container::StyleSheet for SepStyle {
|
||||
type Style = iced::Theme;
|
||||
fn appearance(&self, _style: &Self::Style) -> iced::widget::container::Appearance {
|
||||
iced::widget::container::Appearance {
|
||||
background: color::SECONDARY.into(),
|
||||
background: color::BORDER_GREY.into(),
|
||||
..iced::widget::container::Appearance::default()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user