From 1b1105e327b25672251a3ab8c7b5e2e4651725b3 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Fri, 13 Sep 2024 16:52:42 +0100 Subject: [PATCH] Remove border radius scaling (#15173) # Objective Fixes #15142 Split this off from #15163 as it's a very simple fix. ## Solution UiScale was applied twice to border radius, remove the second application. ## Testing You can use this modified button example from the issue for testing: ``` use bevy::{color::palettes::basic::*, prelude::*, winit::WinitSettings}; fn main() { App::new() .add_plugins(DefaultPlugins) // Only run the app when there is user input. This will significantly reduce CPU/GPU use. .insert_resource(UiScale(2.)) .insert_resource(WinitSettings::desktop_app()) .add_systems(Startup, setup) .add_systems(Update, button_system) .run(); } const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15); const HOVERED_BUTTON: Color = Color::srgb(0.25, 0.25, 0.25); const PRESSED_BUTTON: Color = Color::srgb(0.35, 0.75, 0.35); fn button_system( mut interaction_query: Query< ( &Interaction, &mut BackgroundColor, &mut BorderColor, &Children, ), (Changed, With