Add randomize colors shortcut - #48
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a "Randomize Colors" action accessible from the menu-bar color submenu and as an assignable global shortcut, while consolidating the randomization logic into a single ClickSettings.applyRandomizedStyle() method.
Changes:
- Introduces a new
randomizeColorsshortcut action with persistence and default-binding plumbing. - Moves the randomization logic from the settings view model into
ClickSettingsso it can be reused from the menu and the hotkey handler. - Adds a "Randomize Colors" entry to the menu-bar color submenu and documents the new feature in the README.
Show a summary per file
| File | Description |
|---|---|
| Sources/ClickLight/HotKeyBinding.swift | Adds the randomizeColors case, title, sort order, and default binding (nil). |
| Sources/ClickLight/SettingsStore.swift | Adds storage, defaults, and persistence keys for the new hotkey; introduces applyRandomizedStyle(). |
| Sources/ClickLight/SettingsWindowController.swift | Replaces inline randomization with a call to applyRandomizedStyle(). |
| Sources/ClickLight/StatusController.swift | Adds the menu item and action handler for randomizing colors. |
| Sources/ClickLight/AppDelegate.swift | Wires the new shortcut action to apply randomized style. |
| README.md | Documents the new menu entry and shortcut. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/6 changed files
- Comments generated: 0
|
The crowded menu wsa adressed here: #50 But I still dont think we need a keybind for the randomize 🤔 |
|
I do agree, there is a lot happening in the menu! I do like the keyboard shortcut. Maybe I can just keep that in there? |
|
I'll let you know when ready |
This reverts commit 22d1079.
|
Alright I think it is good. Coding with Copilot from the GitHub app while I am on a plane to SF for Build! What a time to be alive. I don't have my Mac with me so can't test it, but looks correct via my review |


Summary
Testing
./build-app.sh