feat: Focus mode — landscape flip clock + Pomodoro - #1
Merged
Merged
Conversation
Long-pressing the Home clock confirms into a full-screen, landscape flip clock that hides the system bars. A tap toggles seconds; a long-press switches between the plain clock and a 25/5/15 Pomodoro timer with start/pause, reset, skip, and a kanji phase label. - New Screen.Focus, rendered outside the dock layer, with orientation and immersive bars locked/restored via a DisposableEffect. - FlipClock/FlipDigit split-flap digits; rememberSecondTime() ticker. - FocusConfirmDialog gate, matching the BlockConfirmDialog style.
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 Focus mode: a full-screen, landscape flip clock that doubles as a Pomodoro timer, reached deliberately by long-pressing the Home clock.
Access
FocusConfirmDialog, styled likeBlockConfirmDialog) → enters Focus.DisposableEffectandresetToHome()).Inside Focus
FlipClock/FlipDigitcards in the sumi-e style;HH:MMwith a tap-to-reveal seconds, driven by a newrememberSecondTime()ticker.Implementation notes
Screen.Focusvalue; rendered full-bleed outside the dock layer inTempoApp.kt.LauncherViewModel(requestFocus/confirmFocus/cancelFocus/goFocus).pointerInput/detectTapGestures(no ripple) plus an accessibilityonLongClicklabel.Verification
./gradlew assembleDebug lintDebug testDebugUnitTest— all green locally (mirrors CI).## [0.0.7]section for the release notes.Out of scope (v1)
Configurable durations, persisting the Pomodoro across app death, sound/notification on phase end, keeping the timer alive while backgrounded.