diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs index fc03150fb6055bb7f2dcf6d1c5825cf9c5bcbe2b..e1e4c7e0adb075289a20dfef91eec6baadef9dd5 100644 --- a/crates/editor2/src/editor.rs +++ b/crates/editor2/src/editor.rs @@ -4228,16 +4228,18 @@ impl Editor { ) -> Option { if self.available_code_actions.is_some() { Some( - IconButton::new("code_actions_indicator", ui::Icon::Bolt).on_click(cx.listener( - |editor, e, cx| { + IconButton::new("code_actions_indicator", ui::Icon::Bolt) + .icon_size(IconSize::Small) + .icon_color(Color::Muted) + .selected(is_active) + .on_click(cx.listener(|editor, e, cx| { editor.toggle_code_actions( &ToggleCodeActions { deployed_from_indicator: true, }, cx, ); - }, - )), + })), ) } else { None