feat: recording snackbar indicator (#10) - #17
Merged
DavidHruby1 merged 4 commits intoJun 4, 2026
Merged
Conversation
Add src/snackbar.py: a frameless, always-on-top, translucent, click-through status pill rendered at the bottom-center of the primary screen, with a pulsing colored dot plus label. Includes pure, display-free helpers snackbar_content_for (state->content) and bottom_center_xy (geometry), unit-tested without a QApplication.
Build one RecordingSnackbar in _TrayApp and show/hide it from the single _apply_state seam: a red "Recording" pill while capturing, an amber "Processing" pill while the pipeline runs, hidden on idle. Hide it on quit. Always-on for v1; no config/settings surface.
Add the on-screen recording indicator to the README feature list and a snackbar.py API contract block in IMPLEMENTATION.md.
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
Implements roadmap feature #10 Recording Snackbar (
docs/FEATURES.md): a small animated on-screen indicator at the bottom-center of the screen.A new
src/snackbar.pyprovidesRecordingSnackbar— a frameless, always-on-top, translucent, click-through overlay (a pill with a pulsing colored dot + label). It shows a red "Recording" pill while capturing audio and an amber "Processing" pill while the pipeline runs, then fades out on idle.What changed
src/snackbar.py(new) —RecordingSnackbar(QWidget)overlay usingWindowStaysOnTopHint | FramelessWindowHint | Tool,WA_TranslucentBackground,WA_TransparentForMouseEvents,WA_ShowWithoutActivating,NoFocus. Pulse viaQPropertyAnimationon a custompulseproperty; show/hide via awindowOpacityfade. Two pure, display-free helpers:snackbar_content_for(state_value)(state→content) andbottom_center_xy(available, size, margin)(geometry).src/main.py— oneRecordingSnackbarbuilt in_TrayApp.__init__; driven from the single_apply_stateseam; hidden on quit.README.mdfeature bullet +docs/IMPLEMENTATION.mdAPI contract block.Design decisions
config.py/settings_dialog.pychanges, so this does not conflict with the open custom-hotkeys PR (feat: custom keyboard/mouse hotkeys via low-level hooks #13). A toggle can be added later.Tests
New:
tests/test_snackbar.py(content map, geometry, offscreen widget smoke),tests/test_snackbar_wiring.py(state→show/hide contract). Full suite: 54 passing (offscreen).Manual smoke (
python -m src.main): app starts clean; the pill shows/updates across Recording→Processing→idle and renders without error.