mirror of
https://github.com/heyman/heynote.git
synced 2025-01-20 12:58:42 +01:00
Fix icon for nix systems
This commit is contained in:
parent
5865181d98
commit
a7471fcb3b
@ -114,9 +114,17 @@ async function createWindow() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const pngSystems: NodeJS.Platform[] = ["linux", "freebsd", "openbsd", "netbsd"]
|
||||||
|
const icon = join(
|
||||||
|
process.env.PUBLIC,
|
||||||
|
pngSystems.includes(process.platform)
|
||||||
|
? "favicon-linux.png"
|
||||||
|
: "favicon.ico",
|
||||||
|
)
|
||||||
|
|
||||||
win = new BrowserWindow(Object.assign({
|
win = new BrowserWindow(Object.assign({
|
||||||
title: 'heynote',
|
title: 'heynote',
|
||||||
icon: join(process.env.PUBLIC, 'favicon.ico'),
|
icon,
|
||||||
backgroundColor: nativeTheme.shouldUseDarkColors ? '#262B37' : '#FFFFFF',
|
backgroundColor: nativeTheme.shouldUseDarkColors ? '#262B37' : '#FFFFFF',
|
||||||
//titleBarStyle: 'customButtonsOnHover',
|
//titleBarStyle: 'customButtonsOnHover',
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user