Repository navigation
Conversation
Add a "Button sound" toggle (off by default) to Settings > Viewer > Navigation. When enabled, clicking the Next or Close button in the media viewer plays a short tone synthesized with the Web Audio API, so no audio assets or new dependencies are added. Keyboard and mouse-wheel navigation stay silent. Refs julyx10#424 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAqDoZqsLeVU3BPxtiKN5L
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.
Fixes #424
What
Adds an optional Button sound toggle under Settings → Viewer → Navigation (off by default). When enabled, clicking the Next or Close button in the media viewer plays a short, quiet tone:
Why
On macOS it can be hard to tell whether a click on Next/Close registered, especially with similar-looking consecutive photos. A subtle audio cue gives immediate confirmation (see #424).
How
src-vite/src/common/sound.ts: tiny helper that synthesizes the tones with the Web Audio API, so there are no audio assets and no new dependenciesMediaViewer.vue: only the Next/Close button clicks (toolbar, overlay arrow, close buttons) play the sound; keyboard and mouse-wheel navigation stay silent, so fast browsing isn't noisysettings.viewerButtonSound(defaultfalse), synced across windows like the other viewer settingsTesting
cargo tauri devon macOS (Apple Silicon): with the toggle on, Next/Close play the tone; with it off, no soundpnpm buildandpnpm test:startuppassScreenshot
Claude-Session: https://claude.ai/code/session_01GAqDoZqsLeVU3BPxtiKN5L