diff --git a/src-tauri/src/core/core.rs b/src-tauri/src/core/core.rs index 4f91560..028bde3 100644 --- a/src-tauri/src/core/core.rs +++ b/src-tauri/src/core/core.rs @@ -1,6 +1,6 @@ use futures::future::join_all; use once_cell::sync::OnceCell; -use paris::{error, info}; +use paris::{error, info, warn}; use serde::{Deserialize, Serialize}; use std::{ @@ -13,7 +13,6 @@ use tokio::{ sync::mpsc, time::{sleep, Instant}, }; -use tracing::warn; use crate::{ picker::{ @@ -165,7 +164,8 @@ impl CoreManager { sub_pixel_index }; let global_sub_pixel_index = - (sign * (pixel_index as isize * 3 + offset as isize) + start ) as usize; + (sign * (pixel_index as isize * 3 + offset as isize) + start) + as usize; global_sub_pixels.insert(global_sub_pixel_index, color); } } @@ -220,7 +220,7 @@ impl CoreManager { if let AmbientLightMode::Follow = *lock { drop(lock); let screenshot = picker.take_screenshot()?; - info!("Take Screenshot Spend: {:?}", start.elapsed()); + // info!("Take Screenshot Spend: {:?}", start.elapsed()); match tx.send(screenshot).await { Ok(_) => {} Err(err) => { diff --git a/src/configurator/components/draggable-strip.tsx b/src/configurator/components/draggable-strip.tsx index 871910a..b193228 100644 --- a/src/configurator/components/draggable-strip.tsx +++ b/src/configurator/components/draggable-strip.tsx @@ -70,7 +70,7 @@ export const DraggableStrip: FC = ({ = ({