Remove Builder abstractions for gradients
This commit is contained in:
parent
6551a0b2ab
commit
4c1a082f04
15 changed files with 167 additions and 213 deletions
|
|
@ -233,7 +233,7 @@ pub fn into_paint(style: Style) -> tiny_skia::Paint<'static> {
|
|||
Style::Gradient(gradient) => match gradient {
|
||||
Gradient::Linear(linear) => {
|
||||
let stops: Vec<tiny_skia::GradientStop> = linear
|
||||
.color_stops
|
||||
.stops
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.map(|stop| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue