Skip to content

Commit

Permalink
Use a pointing hand cursor style on tab close icons
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansobo committed Sep 13, 2021
1 parent 2b7f69c commit 7737699
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions zed/src/workspace/pane.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
use super::{ItemViewHandle, SplitDirection};
use crate::settings::Settings;
use gpui::{
action,
color::Color,
elements::*,
geometry::{rect::RectF, vector::vec2f},
keymap::Binding,
Border, Entity, MutableAppContext, Quad, RenderContext, View, ViewContext, ViewHandle,
};
use gpui::{Border, Entity, MutableAppContext, Quad, RenderContext, View, ViewContext, ViewHandle, action, color::Color, elements::*, geometry::{rect::RectF, vector::vec2f}, keymap::Binding, platform::CursorStyle};
use postage::watch;
use std::{cmp, path::Path, sync::Arc};

Expand Down Expand Up @@ -290,7 +283,7 @@ impl Pane {
icon.with_color(style.icon_close).boxed()
}
},
)
).with_cursor_style(CursorStyle::PointingHand)
.on_click(move |cx| {
cx.dispatch_action(CloseItem(item_id))
})
Expand Down

0 comments on commit 7737699

Please sign in to comment.