Skip to content

Commit e1d7b2c

Browse files
committed
Fix CI Build
- Replace tuple struct syntax with BorderColor::all(...) in shape node and settings panel. - Resolves E0423 error due to struct construction changes in Bevy UI. - consistent formatting - Fmt imports
1 parent 2cec73b commit e1d7b2c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/ui/box_shadow.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! This example shows how to create a node with a shadow and adjust its settings interactively.
22
3-
use bevy::time::Time;
4-
use bevy::{color::palettes::css::*, prelude::*, winit::WinitSettings};
3+
use bevy::{color::palettes::css::*, prelude::*, time::Time, winit::WinitSettings};
54

65
const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15);
76
const HOVERED_BUTTON: Color = Color::srgb(0.25, 0.25, 0.25);
@@ -157,7 +156,7 @@ fn setup(
157156

158157
(
159158
node,
160-
BorderColor(WHITE.into()),
159+
BorderColor::all(WHITE.into()),
161160
radius,
162161
BackgroundColor(Color::srgb(0.21, 0.21, 0.21)),
163162
BoxShadow(vec![ShadowStyle {
@@ -184,7 +183,7 @@ fn setup(
184183
..default()
185184
},
186185
BackgroundColor(Color::srgb(0.12, 0.12, 0.12).with_alpha(0.85)),
187-
BorderColor(Color::WHITE.with_alpha(0.15)),
186+
BorderColor::all(Color::WHITE.with_alpha(0.15)),
188187
BorderRadius::all(Val::Px(12.0)),
189188
ZIndex(10),
190189
))
@@ -588,7 +587,7 @@ fn trigger_button_action(
588587
SettingsButton::SamplesInc => shadow.samples += 1,
589588
SettingsButton::SamplesDec => {
590589
if shadow.samples > 1 {
591-
shadow.samples -= 1
590+
shadow.samples -= 1;
592591
}
593592
}
594593
}

0 commit comments

Comments
 (0)