From 001e8483936c8afac8b88135236652f191887fdd Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Wed, 12 Jul 2023 12:40:37 -0400 Subject: [PATCH] Update picker footer button style Co-Authored-By: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> --- crates/vcs_menu/src/lib.rs | 7 +++++-- styles/src/style_tree/picker.ts | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/vcs_menu/src/lib.rs b/crates/vcs_menu/src/lib.rs index 180eb463bd..184c1f4733 100644 --- a/crates/vcs_menu/src/lib.rs +++ b/crates/vcs_menu/src/lib.rs @@ -1,8 +1,10 @@ use anyhow::{anyhow, bail, Result}; use fuzzy::{StringMatch, StringMatchCandidate}; use gpui::{ - actions, elements::*, platform::MouseButton, AppContext, MouseState, Task, ViewContext, - ViewHandle, + actions, + elements::*, + platform::{CursorStyle, MouseButton}, + AppContext, MouseState, Task, ViewContext, ViewHandle, }; use picker::{Picker, PickerDelegate, PickerEvent}; use std::{ops::Not, sync::Arc}; @@ -290,6 +292,7 @@ impl PickerDelegate for BranchListDelegate { .contained() .with_style(style.container) }) + .with_cursor_style(CursorStyle::PointingHand) .on_down(MouseButton::Left, |_, _, cx| { cx.spawn(|picker, mut cx| async move { picker.update(&mut cx, |this, cx| { diff --git a/styles/src/style_tree/picker.ts b/styles/src/style_tree/picker.ts index b8817a25e9..28ae854787 100644 --- a/styles/src/style_tree/picker.ts +++ b/styles/src/style_tree/picker.ts @@ -121,7 +121,7 @@ export default function picker(): any { }, footer: interactive({ base: { - text: text(theme.lowest, "sans", "variant", { size: "xs" }), + text: text(theme.lowest, "sans", "base", { size: "xs" }), padding: { bottom: 4, left: 12,