Skip to content

Conversation

@psychedelicious
Copy link
Contributor

feat(ui): improve context menu feel

  • faster animation
  • do not handle context menu events inside context menu (fixes issue where the context menu appears to not fire)

feat(ui): fix copy image, add context menu to IAIDndImage

  • restore copy image functionality* in image context menu, current image buttons
  • give IAIDndImage the same context menu
  • copying image to clipboard is not possible on Firefox unless the user enables a setting which is disabled by default. if the browser does not support copying an image, the copy functionality is disabled.

feat(ui): consolidate imagecontextmenu and send to menu

Both support the same actions:

  • Open in new tab
  • Copy image (if supported by browser)
  • Use prompt
  • Use seed
  • Use all
  • Send to img2img
  • Send to canvas
  • Change board
  • Download image
  • Delete

Demo (light mode is FF, where copy is not available, dark mode chrome where it available)

Screen.Recording.2023-07-17.at.7.25.29.pm.mov

- faster animation
- do not handle context menu events inside context menu (fixes issue where the context menu appears to not fire)
- restore copy image functionality* in image context menu, current image buttons
- give IAIDndImage the same context menu

* copying image to clipboard is not possible on Firefox unless the user enables a setting which is disabled by default. if the browser does not support copying an image, the copy functionality is disabled.
Both support the same actions:
- Open in new tab
- Copy image (if supported by browser)
- Use prompt
- Use seed
- Use all
- Send to img2img
- Send to canvas
- Change board
- Download image
- Delete
@hipsterusername hipsterusername merged commit c82ae74 into main Jul 17, 2023
@hipsterusername hipsterusername deleted the feat/ui/improve-context-menu branch July 17, 2023 20:43
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