From 2d8186cdcebbed93f67f71660349d11f80cecb78 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Fri, 13 Dec 2024 00:37:20 +0100 Subject: [PATCH] cleanup --- src/editor.rs | 34 ---------------------------------- src/style.css | 1 - 2 files changed, 35 deletions(-) diff --git a/src/editor.rs b/src/editor.rs index 66a4204..40929c8 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -1544,40 +1544,6 @@ impl ActionTrigger { canvas.draw_path(&path, &paint); } - - // clippy's suggestion doesn't work, cause we need the early exit - #[allow(clippy::match_same_arms)] - fn get_action_class( - params: &Arc, - is_learning: Arc, - learned_notes: Arc, - last_played_notes: Arc, - enabled_actions: Arc, - own_index: usize, - ) -> &str { - let is_learning = - is_learning.load(Ordering::SeqCst) && learned_notes.load(own_index) == LEARNING; - let is_playing = last_played_notes.is_playing(learned_notes.load(own_index)); - let is_enabled = enabled_actions.load(own_index); - - // Determine the paint color based on the state - match ( - // true,true,true,true,true, - is_learning, - params.global.mute_is_toggle.value(), - is_enabled, - is_playing, - own_index == CLEAR_TAPS, - ) { - (true, _, _, _, _) => "learning", - (_, _, _, true, true) => "muted", - (_, true, true, _, _) => "muted", - (_, true, false, _, _) => "default", - (_, _, true, _, _) => "muted", - (_, _, _, true, _) => "live", - _ => "default", // Default: paint with background color - } - } } impl View for ActionTrigger { diff --git a/src/style.css b/src/style.css index 67b3f41..fa087ef 100644 --- a/src/style.css +++ b/src/style.css @@ -85,7 +85,6 @@ param-slider .value-entry .selection { top: 1s; bottom: 19px; transition: color 240ms; - box-shadow: 0px 0px 08px #4e4e4e; } .show-full-parameters:active, .show-full-parameters:hover {