Update tray icon for macOS and increment version to 2.3.8

This commit is contained in:
troyeguo
2026-06-16 10:37:57 +08:00
parent a9760e1a67
commit aa511c5e98
2 changed files with 5 additions and 2 deletions

View File

@@ -656,8 +656,11 @@ const createTray = () => {
: path.join(__dirname, "./build/assets/icon.png");
let trayIcon = nativeImage.createFromPath(iconPath);
if (os.platform() === "darwin") {
trayIcon = nativeImage.createFromPath(
path.join(__dirname, "./build/assets/trayTemplate.png")
);
trayIcon = trayIcon.resize({ width: 16, height: 16, quality: "best" });
trayIcon.setTemplateImage(false);
trayIcon.setTemplateImage(true);
}
tray = new Tray(trayIcon);
const contextMenu = Menu.buildFromTemplate([

View File

@@ -1,7 +1,7 @@
{
"name": "koodo-reader",
"main": "main.js",
"version": "2.3.7",
"version": "2.3.8",
"description": "Koodo Reader is a cross-platform ebook reader",
"author": {
"name": "App by Troye",