diff --git a/crates/engine/src/cmd/smartart/paint.rs b/crates/engine/src/cmd/smartart/paint.rs index e49efd90..88192cad 100644 --- a/crates/engine/src/cmd/smartart/paint.rs +++ b/crates/engine/src/cmd/smartart/paint.rs @@ -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)); diff --git a/crates/model/src/theme.rs b/crates/model/src/theme.rs index 27fe93e3..5087f3ea 100644 --- a/crates/model/src/theme.rs +++ b/crates/model/src/theme.rs @@ -115,7 +115,6 @@ pub fn default_format() -> FormatScheme { ], shape: GradientShape::Linear { angle: 90.0, scaled: false }, rotate_with_shape: true, - flip: None, }) }; diff --git a/crates/pptx/tests/it/corpus_style.rs b/crates/pptx/tests/it/corpus_style.rs index 42289760..bc3ea2fa 100644 --- a/crates/pptx/tests/it/corpus_style.rs +++ b/crates/pptx/tests/it/corpus_style.rs @@ -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, })); diff --git a/crates/pptx/tests/it/fills.rs b/crates/pptx/tests/it/fills.rs index 51bd51de..c1b7e9f3 100644 --- a/crates/pptx/tests/it/fills.rs +++ b/crates/pptx/tests/it/fills.rs @@ -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); diff --git a/crates/render/src/tests.rs b/crates/render/src/tests.rs index ad6b9424..f01ee1cf 100644 --- a/crates/render/src/tests.rs +++ b/crates/render/src/tests.rs @@ -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() }), diff --git a/crates/render/src/tests_wild.rs b/crates/render/src/tests_wild.rs index c73987af..ae78f64b 100644 --- a/crates/render/src/tests_wild.rs +++ b/crates/render/src/tests_wild.rs @@ -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. diff --git a/crates/ui-egui/src/panels/fillui.rs b/crates/ui-egui/src/panels/fillui.rs index 3e247621..d1f807ae 100644 --- a/crates/ui-egui/src/panels/fillui.rs +++ b/crates/ui-egui/src/panels/fillui.rs @@ -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 {