diff options
author | Syncx <47534062+Syncxv@users.noreply.github.com> | 2023-09-13 07:14:17 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 23:14:17 +0200 |
commit | a73d09a2f0d2adc7ff56e6f6004cd6ec50e202e9 (patch) | |
tree | 0b2e8d93c2cdf157f67dd876175a2ef55e4ec6a9 /src/plugins/imageZoom | |
parent | cf7c4d63b6a8f11a4b8d96d39e4b5ca0c0cf4bc3 (diff) | |
download | Vencord-a73d09a2f0d2adc7ff56e6f6004cd6ec50e202e9.tar.gz Vencord-a73d09a2f0d2adc7ff56e6f6004cd6ec50e202e9.tar.bz2 Vencord-a73d09a2f0d2adc7ff56e6f6004cd6ec50e202e9.zip |
PreviewMessage: Add attachments (& misc changes) (#1715)
Diffstat (limited to 'src/plugins/imageZoom')
-rw-r--r-- | src/plugins/imageZoom/README.md | 6 | ||||
-rw-r--r-- | src/plugins/imageZoom/index.tsx | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/imageZoom/README.md b/src/plugins/imageZoom/README.md new file mode 100644 index 0000000..8e3b7ef --- /dev/null +++ b/src/plugins/imageZoom/README.md @@ -0,0 +1,6 @@ +# ImageZoom + +Lets you zoom in to images and gifs. Use scroll wheel to zoom in and shift + scroll wheel to increase lens radius / size + +![Example](https://i.imgur.com/VJdo4aq.png) +![ContextMenu](https://i.imgur.com/0oaRM2s.png) diff --git a/src/plugins/imageZoom/index.tsx b/src/plugins/imageZoom/index.tsx index 71540f2..cca0db0 100644 --- a/src/plugins/imageZoom/index.tsx +++ b/src/plugins/imageZoom/index.tsx @@ -99,6 +99,15 @@ const imageContextMenuPatch: NavContextMenuPatchCallback = children => () => { ContextMenu.close(); }} /> + <Menu.MenuCheckboxItem + id="vc-nearest-neighbour" + label="Nearset Neighbour" + checked={settings.store.nearestNeighbour} + action={() => { + settings.store.nearestNeighbour = !settings.store.nearestNeighbour; + ContextMenu.close(); + }} + /> <Menu.MenuControlItem id="vc-zoom" label="Zoom" |