Repository navigation
Add optional hover previous/next navigation buttons - #875
Open
pangziqiang wants to merge 3 commits into
Open
pangziqiang wants to merge 3 commits into
pangziqiang wants to merge 3 commits into
Conversation
Add previous/next overlay buttons that fade in while hovering the image and fade out after the cursor leaves. The buttons reuse the existing navigation logic, disable at folder boundaries, and can be turned off in the miscellaneous settings.
Parent the overlay buttons to the view rather than its viewport, so QGraphicsView scrolling and zooming no longer move them or push the next button out of view.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional previous/next navigation buttons overlaid on the image view, aimed at mouse- and touch-only users who do not want to use the context menu or keyboard shortcuts.
Show navigation buttonsoption under Settings → Miscellaneous, off by default to preserve qView's minimal default behaviorgoToFile()navigation logic, so slideshow cancellation, looping, sorting, and preloading behavior stay consistentFade-in duration is 160 ms; fade-out starts after a 350 ms hover delay and also takes 160 ms.
Related issues
This PR intentionally implements only the on-screen buttons. Scroll-wheel navigation and swipe gestures are separate pieces and can be handled independently.
Testing
ActionManagerTestspass (1/1)Notes
Happy to adjust the default, timing, styling, or split this into smaller commits if preferred.