Update picker footer button style

Co-Authored-By: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Nate Butler 2023-07-12 12:40:37 -04:00
parent 2ac485a6ec
commit 001e848393
2 changed files with 6 additions and 3 deletions

View file

@ -1,8 +1,10 @@
use anyhow::{anyhow, bail, Result}; use anyhow::{anyhow, bail, Result};
use fuzzy::{StringMatch, StringMatchCandidate}; use fuzzy::{StringMatch, StringMatchCandidate};
use gpui::{ use gpui::{
actions, elements::*, platform::MouseButton, AppContext, MouseState, Task, ViewContext, actions,
ViewHandle, elements::*,
platform::{CursorStyle, MouseButton},
AppContext, MouseState, Task, ViewContext, ViewHandle,
}; };
use picker::{Picker, PickerDelegate, PickerEvent}; use picker::{Picker, PickerDelegate, PickerEvent};
use std::{ops::Not, sync::Arc}; use std::{ops::Not, sync::Arc};
@ -290,6 +292,7 @@ impl PickerDelegate for BranchListDelegate {
.contained() .contained()
.with_style(style.container) .with_style(style.container)
}) })
.with_cursor_style(CursorStyle::PointingHand)
.on_down(MouseButton::Left, |_, _, cx| { .on_down(MouseButton::Left, |_, _, cx| {
cx.spawn(|picker, mut cx| async move { cx.spawn(|picker, mut cx| async move {
picker.update(&mut cx, |this, cx| { picker.update(&mut cx, |this, cx| {

View file

@ -121,7 +121,7 @@ export default function picker(): any {
}, },
footer: interactive({ footer: interactive({
base: { base: {
text: text(theme.lowest, "sans", "variant", { size: "xs" }), text: text(theme.lowest, "sans", "base", { size: "xs" }),
padding: { padding: {
bottom: 4, bottom: 4,
left: 12, left: 12,