Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated hat shapes #1868

Merged
merged 39 commits into from
Oct 24, 2023
Merged

Updated hat shapes #1868

merged 39 commits into from
Oct 24, 2023

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Sep 8, 2023

  • Updated hat shape svg for increased area
  • svg all now have the same size and proportions which means that we don't have to do as much tweaking in typescript
  • hats have an increased default height

main
image

pr1868
image

matt 2.1
image

matt 2.3
image

pr1868 vs 2.1 vs 2.3
image
image
image

Checklist

  • Do a pass through looking at the hat sorting to see if we want to reorder them
  • Check that the order of hats in constants is same as order in package.json
  • Send message to users indicating that if they have used the individual hat adjustments setting, they may want to reset it and start over because things have changed
  • [/] I have added tests
  • [/] I have updated the docs and cheatsheet
  • [/] I have not broken the cheatsheet

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! How long were you guys at it yesterday?

@pokey
Copy link
Member

pokey commented Sep 8, 2023

Also, I believe the same changes need to be made to the pre processor, and you'll want to run the preprocessor on these hats. Notice how all the hats in the docs deploy preview are now red

Ideally we'd run the preprocessor in pre-commit or meta-updater

@pokey
Copy link
Member

pokey commented Sep 8, 2023

In terms of shapes, at quick glance they all look nice except I don't love how wing and fox are nearly direct mirror images. As discussed, that has been an issue for users (myself included 😅)

@AndreasArvidsson
Copy link
Member Author

I feel the same, but it's hard to make wing have more area and still be distinct in shape.

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there. See inline comment, and icymi #1868 (comment)

@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Sep 9, 2023

Preprocessor and other comments are now dealt with. I only have another crack at redesigning wing left.

edit: I don't really have a better suggestion for wing at the moment.

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Maybe we should drive it for a couple days before merging?

Btw how'd you get the SVGs so clean? They were much messier before

@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Sep 9, 2023

Sounds reasonable to run with this for a few days

I disabled the frame/clip rectangle from being exported in Figma

@pokey
Copy link
Member

pokey commented Sep 9, 2023

Just reposting my comments from Figma here for visibility:

  • default feels a bit chunky relative to other hats (maybe easiest to solve this one in code)
  • hole and frame look like they could be tough to distinguish. hole and eye may also be an issue. I'll see how this one plays out after a couple days' use.
  • crosshairs kinda just looks like a blob when it's that small. I'm not sure that's necessarily a showstopper, but we'll see if that messes with usability
  • frame feels a little bit chunky relative to eg fox. Maybe the answer is slightly beef up fox? 🤷‍♂️
  • worried about curve vs wing; maybe the pointiness on the top of wing will help things
  • curve sits a bit high, esp compared to eg wing (maybe easiest to solve this one in code)

@pokey
Copy link
Member

pokey commented Sep 9, 2023

If anyone wants to try these hats out locally and is comfortable piping curl to bash, here's a magic incantation to install them locally:

curl -sSf https://raw.githubusercontent.com/cursorless-dev/cursorless/main/packages/cursorless-vscode/scripts/install-from-pr.sh | bash -s -- 1868

Alternately, if you prefer not to curl into bash, check out this PR locally and run pnpm -F cursorless-vscode install-local

cc/ @jmegner

@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Sep 10, 2023

Just reposting my comments from Figma here for visibility:

* `default` feels a bit chunky relative to other hats (maybe easiest to solve this one in code)

* `hole` and `frame` look like they could be tough to distinguish. `hole` and `eye` may also be an issue. I'll see how this one plays out after a couple days' use.

* `crosshairs` kinda just looks like a blob when it's that small. I'm not sure that's necessarily a showstopper, but we'll see if that messes with usability

* `frame` feels a little bit chunky relative to eg `fox`. Maybe the answer is slightly beef up `fox`? 🤷‍♂️

* worried about `curve` vs `wing`; maybe the pointiness on the top of wing will help things

* `curve` sits a bit high, esp compared to eg `wing` (maybe easiest to solve this one in code)

It definitely is hard to do comparisons like this in Figma for a couple of reasons. 1 vscode doesn't actually render them in small sizes the same way that Figma does and 2 I have already applied size and vertical offset in code for a few hats. default and frame have been reduced in size and curve have been moved down. Looking at the two images in this pr and of course trying them out for yourself is more indicative of actual experience.

We definitely need to discuss this on the meetup

@AndreasArvidsson AndreasArvidsson added the to discuss Plan to discuss at meet-up label Sep 10, 2023
@AndreasArvidsson AndreasArvidsson removed the to discuss Plan to discuss at meet-up label Sep 12, 2023
@AndreasArvidsson
Copy link
Member Author

That new default light color looks way to bright for me
image

@pokey
Copy link
Member

pokey commented Oct 17, 2023

There should be no new default light color. It's only for dark

@pokey
Copy link
Member

pokey commented Oct 19, 2023

update from meet-up:

use this hat order:

  1. default
  2. bolt
  3. curve
  4. fox
  5. frame
  6. play
  7. wing
  8. hole
  9. ex
  10. crosshairs
  11. eye

Then:

  • increase fox and ex by 5%
  • decrease crosshairs by 10%
  • send to matt
  • send to users for feedback

@AndreasArvidsson
Copy link
Member Author

@pokey ex, fox, frame have been increased in size.

This reverts commit 0b684a9.
@AndreasArvidsson
Copy link
Member Author

@pokey last commit reverted

@AndreasArvidsson AndreasArvidsson marked this pull request as ready for review October 23, 2023 10:27
@pokey
Copy link
Member

pokey commented Oct 23, 2023

ok @AndreasArvidsson this should now show a message if the user has shapes enabled and has any active adjustments. It checks once on first update, and then never checks again, so that subsequent shape tweaks won't trigger a message. Lmk if it works for you locally

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok this looks good to me! @AndreasArvidsson lmk once you've had a chance to look at my hat adjustment message code and try it locally, then I'll ship it so I can coordinate with a message and be there in case a fire breaks out or something 😄

@AndreasArvidsson
Copy link
Member Author

@pokey Looks fine

@pokey
Copy link
Member

pokey commented Oct 24, 2023

Great! When you run it locally, you should get one pop up, then no more, assuming you have global hat adjustments but no individual adjustments. And then the button should take you to the hat adjustments. Is that what happened?

@AndreasArvidsson
Copy link
Member Author

Correct

@pokey pokey enabled auto-merge October 24, 2023 10:12
@pokey pokey added this pull request to the merge queue Oct 24, 2023
Merged via the queue into main with commit 71ccbdd Oct 24, 2023
13 checks passed
@pokey pokey deleted the updatedHatShapes branch October 24, 2023 10:25
This was referenced Oct 27, 2023
fidgetingbits pushed a commit to fidgetingbits/cursorless that referenced this pull request Nov 3, 2023
* Updated hat shape svg for increased area
* svg all now have the same size and proportions which means that we
don't have to do as much tweaking in typescript
* hats have an increased default height

main

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/86a9a80b-fbd4-477f-8c6f-082adbc7f4dd)

pr1868

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/5431585d-e722-4645-982a-536d0a0d3b18)

matt 2.1

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/4708606d-4228-4863-91db-54d56c684741)

matt 2.3

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/edd19b7f-4f11-4c8d-a2fe-369ce290f280)


pr1868 vs 2.1 vs 2.3

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/e681962c-9166-4983-9fc3-c8b0e3b29a2c)

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/ed33ff22-f08d-4d02-8234-a4f664da7ffd)

![image](https://github.com/cursorless-dev/cursorless/assets/3511326/f5512cb7-291b-4ffe-9ff3-3a2a7eb47a22)



## Checklist

- [x] Do a pass through looking at the hat sorting to see if we want to
reorder them
- [x] Check that the order of hats in constants is same as order in
package.json
- [ ] Send message to users indicating that if they have used the
individual hat adjustments setting, they may want to reset it and start
over because things have changed
- [/] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [/] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [/] I have not broken the cheatsheet

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Phil Cohen <[email protected]>
Co-authored-by: Pokey Rule <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants