Skip to content

Commit

Permalink
Fix icon for nix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
OiYouYeahYou authored and heyman committed Dec 10, 2024
1 parent 5865181 commit a7471fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
title: 'heynote',
icon: join(process.env.PUBLIC, 'favicon.ico'),
icon,
backgroundColor: nativeTheme.shouldUseDarkColors ? '#262B37' : '#FFFFFF',
//titleBarStyle: 'customButtonsOnHover',
autoHideMenuBar: true,
Expand Down

0 comments on commit a7471fc

Please sign in to comment.