GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode/packages/desktop/icons at dev · erickwill/opencode

Expand file tree

/

icons

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

icons

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
beta
beta
 
 
dev
dev
 
 
prod
prod
 
 
README.md
README.md
 
 

README.md

Tauri Icons

Here's the process I've been using to create icons:

  • Save source image as app-icon.png in packages/desktop
  • cd to packages/desktop
  • Run bun tauri icon -o src-tauri/icons/{environment}
  • Use Image2Icon's 'Big Sur Icon' preset to generate an icon.icns file and place it in the appropriate icons folder

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 [email protected] from that channel's icon.icns so the dev Dock icon matches the packaged app inset.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.