Target physical pixels for quads in iced_glow

This commit is contained in:
Héctor Ramón Jiménez 2020-05-27 23:17:21 +02:00
parent 823ea15732
commit 45511a442f
2 changed files with 8 additions and 8 deletions

View file

@ -772,7 +772,7 @@ mod style {
Button::Secondary => Color::from_rgb(0.5, 0.5, 0.5),
})),
border_radius: 12,
shadow_offset: Vector::new(1.0, 1.0),
shadow_offset: Vector::new(0.0, 1.0),
text_color: Color::from_rgb8(0xEE, 0xEE, 0xEE),
..button::Style::default()
}
@ -781,7 +781,7 @@ mod style {
fn hovered(&self) -> button::Style {
button::Style {
text_color: Color::WHITE,
shadow_offset: Vector::new(1.0, 2.0),
shadow_offset: Vector::new(0.0, 2.0),
..self.active()
}
}