Skip to content

Add image preview tooltip on clipboard menu hover#53

Closed
EricBlanquer wants to merge 1 commit intodiodon-dev:masterfrom
EricBlanquer:feature/image-preview
Closed

Add image preview tooltip on clipboard menu hover#53
EricBlanquer wants to merge 1 commit intodiodon-dev:masterfrom
EricBlanquer:feature/image-preview

Conversation

@EricBlanquer
Copy link
Copy Markdown

@EricBlanquer EricBlanquer commented Mar 13, 2026

Summary

When hovering over an image clipboard item in the menu, a scaled preview popup is displayed next to the cursor, making it easy to identify images without pasting them.

  • Preview is scaled down to max 500px, positioned near the mouse cursor
  • Clamped vertically to stay within screen bounds
  • Framed with a visible gray border to distinguish from the background
  • Preview is lazily loaded and cached per menu item
  • Works for both ImageClipboardItem and FileClipboardItem (image files)

@EricBlanquer EricBlanquer force-pushed the feature/image-preview branch from b28abc4 to 4c99063 Compare March 13, 2026 19:00
Show a scaled preview popup when hovering over image clipboard items
in the menu. Preview is clamped to screen bounds and framed with a
visible border.
@sliverc
Copy link
Copy Markdown
Member

sliverc commented Mar 25, 2026

Such changes made on the menu itself do not show up in the Ayantana indicator which is the main way to access the clipboard and only show up when using the shortcut which does not work well in all DEs.

Therefore not something I consider integrating. Also please before opening up random PRs open up a issue at https://bugs.launchpad.net/diodon so see whether a change like this is actually desired or in what way. Closing this PR therefore.

@sliverc sliverc closed this Mar 25, 2026
@EricBlanquer EricBlanquer deleted the feature/image-preview branch March 26, 2026 13:39
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.

2 participants