Repository navigation
Add a Flip Clock style, and show style names in the picker - #40
Open
edward-mcnair wants to merge 1 commit into
Open
edward-mcnair wants to merge 1 commit into
edward-mcnair wants to merge 1 commit into
Conversation
Flip Clock is a split-flap clock in the manner of flipclock.us, drawn
natively:
- Each digit is its own card, split across the middle, with colons between
hours, minutes and seconds. When a digit changes, the old top half folds
down and the new bottom half drops into place (rotation3DEffect with
perspective, two 0.18 s phases).
- In 12-hour mode a single-digit hour gets a blank card in front and a small
AM/PM card sits beside the digits.
- It follows the widget's Show Seconds, 24-Hour Format and Show Date
settings, and the cards size themselves to fill the tile.
Picker settings can now give their options display names
(ConfigSchemaEntry.optionLabels). The Clock's Style picker uses its styles'
names ("Flip Clock", "Dot Matrix", "LCD Retro"); the editor's special cases
for "Daybar" and "Dotmatrix" are no longer needed. Other pickers are
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What does this PR do?
Flip Clock: a split-flap clock style in the manner of flipclock.us, drawn natively in SwiftUI.
rotation3DEffectwith perspective, two 0.18 s phases).Picker labels:
ConfigSchemaEntrygains an optionaloptionLabels.Tests:
FlipClockLayoutTests:Screenshots
Can be added after opening, if you'd like them.
Checklist
swift-formatlint clean)🤖 Generated with Claude Code