Skip to content

Use custom icon from assets/icons/custom/ for app and tray icons - #13

Merged
jonathanbossenger merged 3 commits into
mainfrom
copilot/use-custom-app-icon
Nov 1, 2025
Merged

Use custom icon from assets/icons/custom/ for app and tray icons#13
jonathanbossenger merged 3 commits into
mainfrom
copilot/use-custom-app-icon

Conversation

Copilot AI commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

Updated icon generation scripts to use the custom icon file in assets/icons/custom/ instead of programmatically generating icons.

Changes

  • generate-app-icons.js: Replaced gradient/rounded-corner generation with loading from custom PNG file
  • generate-tray-icon.js: Replaced SVG-based generation with custom PNG file
  • Added directory existence validation and alphabetical file selection for predictable behavior

Both scripts now automatically detect and use the first PNG file (alphabetically sorted) from assets/icons/custom/ to generate all platform-specific icon formats (macOS .icns, Windows .ico, Linux .png, and tray icon).

// Find and load custom icon
const customIconFiles = fs.readdirSync(customIconDir)
  .filter(file => file.toLowerCase().endsWith('.png'))
  .sort();

const customIconPath = path.join(customIconDir, customIconFiles[0]);
const image = await Jimp.read(customIconPath);
Original prompt

This section details on the original issue you should resolve

<issue_title>Use custom app icon</issue_title>
<issue_description>Update the generate generate-app-icons and generate-tray-icons to use the source icon file in assets/icons/custom/</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ustom/

Co-authored-by: jonathanbossenger <180629+jonathanbossenger@users.noreply.github.com>
Copilot AI changed the title [WIP] Update app icons to use custom source file Nov 1, 2025
@jonathanbossenger
jonathanbossenger marked this pull request as ready for review November 1, 2025 20:17
@jonathanbossenger
jonathanbossenger merged commit 67bae67 into main Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants