use Color's From impl in more places
This commit is contained in:
parent
58bd0824bf
commit
e7bd24c13e
7 changed files with 49 additions and 139 deletions
|
|
@ -444,12 +444,7 @@ fn explain_layout(
|
|||
// TODO: Draw borders instead
|
||||
primitives.push(Primitive::Quad {
|
||||
bounds: layout.bounds(),
|
||||
background: Background::Color(Color {
|
||||
r: 0.0,
|
||||
g: 0.0,
|
||||
b: 0.0,
|
||||
a: 0.05,
|
||||
}),
|
||||
background: Background::Color([0.0, 0.0, 0.0, 0.05].into()),
|
||||
border_radius: 0,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue