fix(desktop-electron): match dev dock icon inset on macOS (#19429)

This commit is contained in:
Kit Langton 2026-03-27 13:32:05 -04:00 committed by GitHub
commit d36b38e4a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 1 deletions

View file

@ -50,7 +50,8 @@ export function setTitlebar(win: BrowserWindow, theme: Partial<TitlebarTheme> =
export function setDockIcon() {
if (process.platform !== "darwin") return
app.dock?.setIcon(nativeImage.createFromPath(join(iconsDir(), "128x128@2x.png")))
const icon = nativeImage.createFromPath(join(iconsDir(), "dock.png"))
if (!icon.isEmpty()) app.dock?.setIcon(icon)
}
export function createMainWindow(globals: Globals) {