Gradient flip: drop the blank lines before the new flip fields

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-31 00:54:16 -04:00
co-authored by Claude Opus 5.5
parent 5a235590dd
commit 04b0958bee
7 changed files with 0 additions and 16 deletions
-1
View File
@@ -99,7 +99,6 @@ pub(super) fn paint(d: &Diagram, sh: &mut Shape, i: usize, light: bool) {
shape: GradientShape::Linear { angle: 90.0, scaled: false },
rotate_with_shape: true,
tile: [0.0; 4],
flip: None,
}));
sh.line = Some(Line::solid(ColorRef::scheme(SchemeSlot::Lt1), 1.0));
-1
View File
@@ -115,7 +115,6 @@ pub fn default_format() -> FormatScheme {
],
shape: GradientShape::Linear { angle: 90.0, scaled: false },
rotate_with_shape: true,
flip: None,
})
};
-2
View File
@@ -46,7 +46,6 @@ fn gradient(angle: f64) -> Fill {
shape: GradientShape::Linear { angle, scaled: true },
rotate_with_shape: true,
tile: [0.0; 4],
flip: None,
})
}
@@ -118,7 +117,6 @@ fn style_deck() -> Presentation {
shape: GradientShape::Path { path: "circle".into(), focus: [0.2, 0.2, 0.2, 0.2] },
rotate_with_shape: false,
tile: [0.0; 4],
flip: None,
}));
-2
View File
@@ -120,7 +120,6 @@ fn a_fill_overlay_round_trips() {
],
shape: GradientShape::Linear { angle: 4.5, scaled: true },
rotate_with_shape: true,
flip: None,
}),
};
@@ -151,7 +150,6 @@ fn a_gradient_tile_rect_is_read_and_round_trips() {
shape: GradientShape::Path { path: "circle".into(), focus: [0.0, 0.0, 1.0, 1.0] },
rotate_with_shape: true,
tile: [-1.0, -1.0, 0.0, 0.0],
flip: None,
};
let mut p = defaults::new_presentation(None);
-5
View File
@@ -978,7 +978,6 @@ fn a_linear_gradient_ramps_like_powerpoint() {
stops: vec![stop(0.0, deckcraft_color::Rgba::rgb(0, 0, 0)), stop(1.0, deckcraft_color::Rgba::rgb(255, 255, 255))],
shape: GradientShape::Linear { angle: 0.0, scaled: false },
rotate_with_shape: true,
flip: None,
})),
line: Some(deckcraft_model::style::Line { fill: Some(Fill::None), ..Default::default() }),
@@ -1005,7 +1004,6 @@ fn a_gradient_with_a_stop_off_the_end_stays_linear() {
stops: vec![stop(0.2, deckcraft_color::Rgba::rgb(0, 0, 0)), stop(1.0, deckcraft_color::Rgba::rgb(255, 255, 255))],
shape: GradientShape::Linear { angle: 0.0, scaled: false },
rotate_with_shape: true,
flip: None,
})),
line: Some(deckcraft_model::style::Line { fill: Some(Fill::None), ..Default::default() }),
@@ -1048,7 +1046,6 @@ fn a_shape_filled_with_the_background_shows_the_slide_background() {
stops: vec![stop(0.0, 0), stop(0.5, 0), stop(1.0, 200)],
shape: GradientShape::Linear { angle: 0.0, scaled: false },
rotate_with_shape: true,
flip: None,
}),
});
@@ -1151,7 +1148,6 @@ fn a_text_gradient_starts_over_on_every_line() {
stops: vec![stop(0.0, 0), stop(1.0, 255)],
shape: GradientShape::Linear { angle: 90.0, scaled: false },
rotate_with_shape: true,
flip: None,
}));
}
@@ -1314,7 +1310,6 @@ fn rect_path_gradients_draw_x_shaped_contours() {
stops: vec![stop(0.0, 0), stop(0.5, 128), stop(1.0, 255)],
shape: GradientShape::Path { path: "rect".into(), focus: [0.5, 0.5, 0.5, 0.5] },
rotate_with_shape: true,
flip: None,
})),
line: Some(deckcraft_model::style::Line { fill: Some(Fill::None), ..Default::default() }),
-3
View File
@@ -186,7 +186,6 @@ fn radial(focus: [f64; 4]) -> Shape {
stops,
shape: GradientShape::Path { path: "circle".into(), focus },
rotate_with_shape: true,
flip: None,
})),
line: no_line(),
@@ -515,7 +514,6 @@ fn gradient_lines_and_their_heads_take_the_gradient() {
shape: GradientShape::Linear { angle, scaled: false },
rotate_with_shape: true,
tile: [0.0; 4],
flip: None,
})
};
@@ -671,7 +669,6 @@ fn a_gradient_not_rotating_with_its_shape_keeps_to_the_slide() {
shape: GradientShape::Linear { angle: 0.0, scaled: false },
rotate_with_shape,
tile: [0.0; 4],
flip: None,
};
// 200 × 100 turned a quarter: it covers 150..250 across and 50..250 down.
-2
View File
@@ -21,7 +21,6 @@ pub fn default_gradient(base: ColorRef, angle: f64) -> Gradient {
stops: vec![GradientStop { pos: 0.0, color: base }, GradientStop { pos: 1.0, color: dark }],
shape: GradientShape::Linear { angle, scaled: false },
rotate_with_shape: true,
flip: None,
}
}
@@ -147,7 +146,6 @@ pub fn gradient_editor(ui: &mut Ui, id: &str, g: &Gradient, sc: &ColorScheme) ->
stops: vec![GradientStop { pos: 0.0, color: light }, GradientStop { pos: 1.0, color: dark }],
shape: GradientShape::Path { path: "circle".into(), focus: [0.5, 0.5, 0.5, 0.5] },
rotate_with_shape: true,
flip: None,
},
Gradient {