fix(desktop-electron): match dev dock icon inset on macOS (#19429)
This commit is contained in:
parent
bdd7829c68
commit
d36b38e4a6
5 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue