From 36192d44cb2e49d9ed5547785f23f3d876974d0d Mon Sep 17 00:00:00 2001 From: extrawurst Date: Tue, 22 Apr 2025 17:12:02 +0200 Subject: [PATCH] gradient update --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/heads/heads_ui.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fab0b0c..eb063a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -492,9 +492,9 @@ dependencies = [ [[package]] name = "bevy-ui-gradients" -version = "0.2.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ba75b56bfdaefc61b0a96d84cd26b6d8d94eeea838121a649881ccc09a6dcff" +checksum = "9878da2e38435ece7c892539b8d254426718031ada76169ea0dd81aca3076b6c" dependencies = [ "bevy", "bytemuck", diff --git a/Cargo.toml b/Cargo.toml index da2f886..02b3d30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ bevy-inspector-egui = { version = "0.30", optional = true } bevy_polyline = "0.11.0" bevy-steamworks = "0.13.0" bevy_ballistic = "0.1.0" -bevy-ui-gradients = "0.2.0" +bevy-ui-gradients = "0.3.0" bevy_debug_log = "0.5.0" bevy_common_assets = { version = "0.12.0", features = ["ron"] } serde = { version = "1.0.219", features = ["derive"] } diff --git a/src/heads/heads_ui.rs b/src/heads/heads_ui.rs index b853fdc..702e4a1 100644 --- a/src/heads/heads_ui.rs +++ b/src/heads/heads_ui.rs @@ -109,6 +109,7 @@ fn spawn_head_ui( }, BorderRadius::all(Val::Px(9999.)), BackgroundGradient::from(ConicGradient { + start: 0., stops: vec![ AngularColorStop::new(Color::linear_rgba(0., 0., 0., 0.9), 0.), AngularColorStop::new(Color::linear_rgba(0., 0., 0., 0.9), PI * 1.5),