mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 17:01:37 +03:00
fix(desktop): regenerate macOS icon sizes without edge halo (#59900)
Co-authored-by: Brendonovich <14191578+Brendonovich@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
ecf1d36e74
commit
3d7eceb48d
@@ -10,5 +10,9 @@ Here's the process I've been using to create icons:
|
||||
The Image2Icon step is necessary as the `icon.icns` generated by `app-icon.png` does not apply the shadow/padding expected by macOS,
|
||||
so app icons appear larger than expected.
|
||||
|
||||
Every smaller size in `icon.icns` must be a premultiplied-alpha downsample of its 1024px (`icon_512x512@2x`) image. Image2Icon's
|
||||
smaller sizes had light, unpremultiplied anti-aliased edges that render as a halo on dark backgrounds, most visibly at the 64px size
|
||||
macOS uses in System Settings lists. Regenerate them from the 1024px image and resync `dock.png` before committing a new `icon.icns`.
|
||||
|
||||
For unpackaged Electron on macOS, `app.dock.setIcon()` should use a PNG. Keep `dock.png` in each channel folder synced with the
|
||||
extracted `icon_128x128@2x.png` from that channel's `icon.icns` so the dev Dock icon matches the packaged app inset.
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 29 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 41 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
Reference in New Issue
Block a user