-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Updated hat shapes #1868
Conversation
There was a problem hiding this 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?
packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts
Outdated
Show resolved
Hide resolved
packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts
Outdated
Show resolved
Hide resolved
packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts
Outdated
Show resolved
Hide resolved
packages/cursorless-vscode/src/ide/vscode/hats/shapeAdjustments.ts
Outdated
Show resolved
Hide resolved
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 |
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 😅) |
I feel the same, but it's hard to make wing have more area and still be distinct in shape. |
There was a problem hiding this 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)
packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts
Outdated
Show resolved
Hide resolved
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. |
There was a problem hiding this 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
Sounds reasonable to run with this for a few days I disabled the frame/clip rectangle from being exported in Figma |
Just reposting my comments from Figma here for visibility:
|
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 cc/ @jmegner |
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. We definitely need to discuss this on the meetup |
There should be no new default light color. It's only for dark |
update from meet-up: use this hat order:
Then:
|
@pokey ex, fox, frame have been increased in size. |
This reverts commit 0b684a9.
@pokey last commit reverted |
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 |
There was a problem hiding this 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 😄
@pokey Looks fine |
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? |
Correct |
* 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]>
main
pr1868
matt 2.1
matt 2.3
pr1868 vs 2.1 vs 2.3
Checklist