fix(tray): standardize icon size to 16px on macOS

This commit is contained in:
Orchard
2026-04-11 22:21:22 +08:00
parent 33a60fed8c
commit d526ab4cda
+3 -2
View File
@@ -63,10 +63,11 @@ let sourceSelectorWindow: BrowserWindow | null = null;
let tray: Tray | null = null;
let selectedSourceName = "";
const isMac = process.platform === "darwin";
const trayIconSize = isMac ? 16 : 24;
// Tray Icons
const defaultTrayIcon = getTrayIcon("openscreen.png", isMac ? 18 : 24);
const recordingTrayIcon = getTrayIcon("rec-button.png", isMac ? 18 : 24);
const defaultTrayIcon = getTrayIcon("openscreen.png", trayIconSize);
const recordingTrayIcon = getTrayIcon("rec-button.png", trayIconSize);
function createWindow() {
mainWindow = createHudOverlayWindow();