From 7737699981956b107d8ce72abe433300a021a47c Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 13 Sep 2021 11:49:10 -0600 Subject: [PATCH] Use a pointing hand cursor style on tab close icons --- zed/src/workspace/pane.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/zed/src/workspace/pane.rs b/zed/src/workspace/pane.rs index 59931b8c5af7a..66a062fb65d53 100644 --- a/zed/src/workspace/pane.rs +++ b/zed/src/workspace/pane.rs @@ -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}; @@ -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)) })