diff --git a/moxin-frontend/src/shared/icon.rs b/moxin-frontend/src/shared/icon.rs index 3afd83a..6f11f39 100644 --- a/moxin-frontend/src/shared/icon.rs +++ b/moxin-frontend/src/shared/icon.rs @@ -25,4 +25,6 @@ live_design! { ) self.pos = (clipped - rect_pos) / rect_size - \ No newline at end of file + // Calculate the texture coordinates based on the rotation angle + let angle_rad = self.rotation_angle * 3.14159265359 / 180.0; + let co \ No newline at end of file