diff --git a/src-tauri/src/icon.rs b/src-tauri/src/icon.rs index 0bc761c..3588f9c 100644 --- a/src-tauri/src/icon.rs +++ b/src-tauri/src/icon.rs @@ -33,9 +33,10 @@ pub fn create_icon(icon: PomodorolmIcon, path_name: &str) -> Result Result Result= inner_radius * inner_radius + && distance_squared <= outer_radius * outer_radius + { // Calculate the angle of the current pixel relative to the center of the circle let pixel_angle = (dx.atan2(dy).to_degrees() + 360.0) % 360.0; // Check if the pixel angle is within the specified range and outside the inner circle - if pixel_angle >= start_angle - && pixel_angle <= end_angle - && distance_squared >= inner_radius * inner_radius - { + if pixel_angle >= start_angle && pixel_angle <= end_angle { imgbuf.put_pixel(x, y, Rgba([icon.red, icon.green, icon.blue, 255])); // Fill with red }