From ddf1b6fc436635a968721d868b2f2ef7613efa97 Mon Sep 17 00:00:00 2001 From: Aron-Kristofori <91370181+Aron-Kristofori@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:21:10 +0100 Subject: [PATCH] Feature/delay (#137) * Removed unneccessary delay and tested * Readded linux delays just in case. * Fix manual merge --------- Co-authored-by: medzernik <1900179+medzernik@users.noreply.github.com> --- src/components/macroview/topArea/Header.tsx | 99 ++++++++++----------- src/components/overview/MacroCard.tsx | 2 +- wooting-macro-backend/src/lib.rs | 49 ++++------ 3 files changed, 68 insertions(+), 82 deletions(-) diff --git a/src/components/macroview/topArea/Header.tsx b/src/components/macroview/topArea/Header.tsx index 2ac42b7c..1371c921 100644 --- a/src/components/macroview/topArea/Header.tsx +++ b/src/components/macroview/topArea/Header.tsx @@ -141,60 +141,59 @@ export default function Header({ isEditing }: Props) { h={{ base: '80px', md: '100px', xl: '120px' }} py={2} px={{ base: 2, md: 4, xl: 6 }} - gap={4} + spacing={4} shadow={shadowColour} justifyContent="space-between" > - - } - size="sm" - onClick={onBackButtonPress} - /> - - setInputValue(event.target.value)} - onBlur={(event) => updateMacroName(event.target.value)} - value={inputValue} - _focusVisible={{ borderColor: 'primary-accent.500' }} - /> - + {/**/} + } + size="sm" + onClick={onBackButtonPress} + /> + + setInputValue(event.target.value)} + onBlur={(event) => updateMacroName(event.target.value)} + value={inputValue} + _focusVisible={{ borderColor: 'primary-accent.500' }} + /> {/* */} - - - - - - - - + + + + + + - + Duplicate {/* Move to Collection */} {/* Export */} diff --git a/wooting-macro-backend/src/lib.rs b/wooting-macro-backend/src/lib.rs index 2c68d720..6e3d9a58 100644 --- a/wooting-macro-backend/src/lib.rs +++ b/wooting-macro-backend/src/lib.rs @@ -1,38 +1,27 @@ -pub mod config; -mod hid_table; -pub mod plugin; - -use rayon::prelude::*; - -use log::*; - -use itertools::Itertools; - +#[cfg(not(debug_assertions))] +use std::path::PathBuf; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use std::{thread, time}; +use anyhow::{Error, Result}; +#[cfg(not(debug_assertions))] +use dirs; +use halfbrown::HashMap; +use itertools::Itertools; +use log::*; +use rayon::prelude::*; +use rdev::simulate; use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender}; use tokio::sync::RwLock; use tokio::task; -use halfbrown::HashMap; - use config::{ApplicationConfig, ConfigFile}; -#[cfg(not(debug_assertions))] -use dirs; -#[cfg(not(debug_assertions))] -use std::path::PathBuf; - -use rdev::simulate; - -use anyhow::{Error, Result}; // This has to be imported for release build #[allow(unused_imports)] use crate::config::CONFIG_DIR; use crate::hid_table::*; - //Plugin imports use crate::plugin::delay; #[allow(unused_imports)] @@ -44,6 +33,10 @@ use crate::plugin::obs; use crate::plugin::phillips_hue; use crate::plugin::system_event; +pub mod config; +mod hid_table; +pub mod plugin; + #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] /// Type of a macro. Currently only Single is implemented. Others have been postponed for now. /// @@ -310,13 +303,9 @@ fn keypress_executor_sender(mut rchan_execute: UnboundedReceiver