Commit f50ca4fd by bubblepipe42

windows tray icon

parent e66eff66
......@@ -146,7 +146,13 @@ function createWindow() {
}
function createTray() {
tray = new Tray(path.join(__dirname, 'tray-iconTemplate.png'));
// Use template icon for macOS (black with transparency, auto-adapts to theme)
// Use colored icon for Windows
const trayIconPath = process.platform === 'darwin'
? path.join(__dirname, 'tray-iconTemplate.png')
: path.join(__dirname, 'tray-icon-windows.png');
tray = new Tray(trayIconPath);
const contextMenu = Menu.buildFromTemplate([
{
......
......@@ -39,7 +39,8 @@
"preload.js",
"icon.png",
"tray-iconTemplate.png",
"tray-iconTemplate@2x.png"
"tray-iconTemplate@2x.png",
"tray-icon-windows.png"
],
"mac": {
"category": "public.app-category.developer-tools",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment