Skip to content

✨ Use NSDockTilePlugIn to customize icon#1075

Merged
SenpaiHunters merged 2 commits into
developfrom
kai/docktile-extension
Apr 4, 2026
Merged

✨ Use NSDockTilePlugIn to customize icon#1075
SenpaiHunters merged 2 commits into
developfrom
kai/docktile-extension

Conversation

@mrkai77
Copy link
Copy Markdown
Owner

@mrkai77 mrkai77 commented Apr 4, 2026

Adds a NSDockTilePlugIn to manage Loop's Dock icon, replacing the previous approach of only setting NSApp.applicationIconImage. This is the more "normal" way for an app to change its dock icon, and matches the implementation of other apps such as Arc.

Changes

  • IconManager updates: When the icon changes, a distributed notification is posted so the dock plugin can react immediately. After setting the icon, the Dock's icon cache is deleted (best-effort) and SLSIconAppearanceConfiguration is re-saved to force the Dock to re-read the bundle's .icon file (reference!)
  • New Icon.isDefault computed property replaces the old Icon.default static with a cleaner check against CFBundleIconName.
  • The developer icon gradient has also been updated to match Apple's own apps (Xcode, Simulator) more closely.

@mrkai77 mrkai77 linked an issue Apr 4, 2026 that may be closed by this pull request
6 tasks
@mrkai77 mrkai77 requested a review from SenpaiHunters April 4, 2026 20:19
@mrkai77 mrkai77 changed the title ✨ Use NSDockTilePlugIn to customize Loop's icon ✨ Use NSDockTilePlugIn to customize icon Apr 4, 2026
@mrkai77 mrkai77 self-assigned this Apr 4, 2026
@SenpaiHunters SenpaiHunters merged commit 6245b4e into develop Apr 4, 2026
1 check passed
@SenpaiHunters SenpaiHunters deleted the kai/docktile-extension branch April 4, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 Loop icon doesnt support icon styles

2 participants