Use square buttons for code action and run indicators in the gutter (#12906)
### Before <img width="94" alt="Screenshot 2024-06-14 at 1 34 54 PM" src="https://github.com/zed-industries/zed/assets/1486634/fe756434-f072-4506-8fd2-c220c17cf112"> <img width="115" alt="Screenshot 2024-06-14 at 1 35 04 PM" src="https://github.com/zed-industries/zed/assets/1486634/e378f02b-cb55-467d-9a5e-04e162d6daab"> ### After <img width="128" alt="Screenshot 2024-06-14 at 1 34 27 PM" src="https://github.com/zed-industries/zed/assets/1486634/3d857a85-7673-43b1-8c48-56766455dd81"> <img width="134" alt="Screenshot 2024-06-14 at 1 34 33 PM" src="https://github.com/zed-industries/zed/assets/1486634/b04c1fef-0a30-4eb1-b8f7-4eff351fcdc7"> Release Notes: - Improved the look of code action and run indicators in the gutter ([#12803](https://github.com/zed-industries/zed/issues/12803)). --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
6ca09bd4ba
commit
0d43d484f6
2 changed files with 3 additions and 3 deletions
|
@ -4915,8 +4915,8 @@ impl Editor {
|
|||
if self.available_code_actions.is_some() {
|
||||
Some(
|
||||
IconButton::new("code_actions_indicator", ui::IconName::Bolt)
|
||||
.shape(ui::IconButtonShape::Square)
|
||||
.icon_size(IconSize::XSmall)
|
||||
.size(ui::ButtonSize::None)
|
||||
.icon_color(Color::Muted)
|
||||
.selected(is_active)
|
||||
.on_click(cx.listener(move |editor, _e, cx| {
|
||||
|
@ -4953,8 +4953,8 @@ impl Editor {
|
|||
cx: &mut ViewContext<Self>,
|
||||
) -> IconButton {
|
||||
IconButton::new(("run_indicator", row.0 as usize), ui::IconName::Play)
|
||||
.shape(ui::IconButtonShape::Square)
|
||||
.icon_size(IconSize::XSmall)
|
||||
.size(ui::ButtonSize::None)
|
||||
.icon_color(Color::Muted)
|
||||
.selected(is_active)
|
||||
.on_click(cx.listener(move |editor, _e, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue