Add persistent color history bar#177
Closed
nwoodfine wants to merge 1 commit intosuperhighfives:mainfrom
Closed
Conversation
This was referenced Mar 1, 2026
Addresses superhighfives#139 Adds a color history bar below the footer showing recently picked colors. Tapping a swatch applies it as the foreground and copies to clipboard. - ColorHistoryManager: MRU list with immediate and debounced recording - SwatchBar: Reusable swatch component (shared with future palette feature) - Refactored system color picker to use togglePicker() directly - Dynamic window resizing when history appears/disappears
4dbbe64 to
aedae52
Compare
Owner
|
Okay, so I really like this idea, and it got me thinking about color history and palettes in general, which led me to building out #183. I've refactored a lot of the app in the process, so I'm going to close this in favor of that, but a massive thanks for the inspiration. It also lays the foundations for having palettes, which I want to keep exploring. I realize not getting a PR merged maybe doesn't feel great, but I can assure you the effort you put in was appreciated and has made it to its own version of the light of day. Thank you, @nwoodfine! Aiming to have a beta out once #189 is approved and merged in. 👍 |
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 (1/3)
Addresses #139
Adds a color history bar below the footer showing recently picked colors. Tapping a swatch applies it as the foreground and copies to clipboard.
Pika with color history feature
This is PR 1 of 3 in a stacked series:
mainmain(depends on PR 1)main(depends on PRs 1 & 2)Pika in native menu bar popover with both color history + custom color palettes
Changes
togglePicker()directly instead of notification-based dispatchtriggerSwapto perform swap inline in AppDelegateSwatchLayout.totalHeight(base:hasHistory:paletteCount:)for shared height calculationNew files
Pika/Utilities/ColorHistoryManager.swiftPika/Views/ColorHistory.swiftPika/Views/SwatchBar.swiftTesting
Note on dependencies
These changes were developed and tested with locally updated dependencies. The PRs intentionally do not include these dependency bumps — they remain on the versions currently in
main. The features do not require the newer versions to build or run. For reference, the development environment used:mainversion891afd44c707Test plan