From af671a4e63278106daa53abb913affbc38afe846 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Thu, 19 Jan 2023 23:54:03 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=A4=96=E8=A7=82=E6=94=B9=E8=BF=9B?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/core/core.rs | 8 ++++---- src/configurator/components/draggable-strip.tsx | 2 +- src/configurator/components/led-strip-editor.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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 = ({ = ({