From dbe5399fc43b1a585c1da25dabeff1ee2062bf4e Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 17 Mar 2025 13:48:04 -0400 Subject: [PATCH] Remove disabling effect on the stage and unstage toolbar buttons (#26936) Closes #26883 Release Notes: - N/A --- crates/git_ui/src/project_diff.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/git_ui/src/project_diff.rs b/crates/git_ui/src/project_diff.rs index d24c7807345c740a3051e9fb95f128869f65326a..ec43467181b861d051221e9e38fc16175a27ecdf 100644 --- a/crates/git_ui/src/project_diff.rs +++ b/crates/git_ui/src/project_diff.rs @@ -919,12 +919,6 @@ impl Render for ProjectDiffToolbar { &StageAndNext, &focus_handle, )) - // don't actually disable the button so it's mashable - .color(if button_states.stage { - Color::Default - } else { - Color::Disabled - }) .on_click(cx.listener(|this, _, window, cx| { this.dispatch_action(&StageAndNext, window, cx) })), @@ -936,11 +930,6 @@ impl Render for ProjectDiffToolbar { &UnstageAndNext, &focus_handle, )) - .color(if button_states.unstage { - Color::Default - } else { - Color::Disabled - }) .on_click(cx.listener(|this, _, window, cx| { this.dispatch_action(&UnstageAndNext, window, cx) })),