Use Pointer
cursor style on Recent Projects, VCS Menu. (#8595)
Release Notes: - Improved to use `Pointer` style cursor on VCS and Recent Projects menu. https://github.com/zed-industries/zed/assets/5518/4f638c6a-00b8-4fa8-b469-4d3109827bc2
This commit is contained in:
parent
953bc5eee2
commit
47bcb305af
2 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@ impl Render for RecentProjects {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
v_flex()
|
v_flex()
|
||||||
.w(rems(self.rem_width))
|
.w(rems(self.rem_width))
|
||||||
|
.cursor_pointer()
|
||||||
.child(self.picker.clone())
|
.child(self.picker.clone())
|
||||||
.on_mouse_down_out(cx.listener(|this, _, cx| {
|
.on_mouse_down_out(cx.listener(|this, _, cx| {
|
||||||
this.picker.update(cx, |this, cx| {
|
this.picker.update(cx, |this, cx| {
|
||||||
|
|
|
@ -67,6 +67,7 @@ impl Render for BranchList {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
v_flex()
|
v_flex()
|
||||||
.w(rems(self.rem_width))
|
.w(rems(self.rem_width))
|
||||||
|
.cursor_pointer()
|
||||||
.child(self.picker.clone())
|
.child(self.picker.clone())
|
||||||
.on_mouse_down_out(cx.listener(|this, _, cx| {
|
.on_mouse_down_out(cx.listener(|this, _, cx| {
|
||||||
this.picker.update(cx, |this, cx| {
|
this.picker.update(cx, |this, cx| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue