From 8be1cc9117e942428a6ca05f66c137fd5341e2af Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 15:16:24 -0400 Subject: [PATCH] Remove disabling effect on the stage and unstage toolbar buttons (cherry-pick #26936) (#26941) Cherry-picked Remove disabling effect on the stage and unstage toolbar buttons (#26936) Closes #26883 Release Notes: - N/A Co-authored-by: Cole Miller --- 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 db3302116ea6f1f1cc3cfcf5dd2b0f1e7a9e9504..2cde89340b9724c8113918416453e69cc42d58fe 100644 --- a/crates/git_ui/src/project_diff.rs +++ b/crates/git_ui/src/project_diff.rs @@ -924,12 +924,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) })), @@ -941,11 +935,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) })),