refactor: align the corner radii order with the theme

It's [TL, TR, BR, BL] everywhere now
This commit is contained in:
Hojjat 2026-09-03 11:50:50 -06:00 • committed by Victoria Brekenfeld
parent f8344126a1
commit e8caf335b3
6 changed files with 27 additions and 33 deletions

View file

@ -99,10 +99,10 @@ where
Uniform::new(
"corner_radius",
[
radius[3] as f32,
radius[1] as f32,
radius[0] as f32,
radius[1] as f32,
radius[2] as f32,
radius[3] as f32,
],
),
Uniform::new(
@ -145,10 +145,10 @@ where
geo: Rectangle<f64, Logical>,
radius: [u8; 4],
) -> [Rectangle<f64, Logical>; 4] {
let top_left = radius[3] as f64;
let top_left = radius[0] as f64;
let top_right = radius[1] as f64;
let bottom_right = radius[0] as f64;
let bottom_left = radius[2] as f64;
let bottom_right = radius[2] as f64;
let bottom_left = radius[3] as f64;
[
Rectangle::new(geo.loc, Size::from((top_left, top_left))),