mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoWeb
synced 2025-06-01 05:48:01 +00:00
16 lines
618 B
TypeScript
16 lines
618 B
TypeScript
import path from "path";
|
|
import { app, screen } from "electron";
|
|
|
|
export default path.join(app.getAppPath(), "./resources/logo.png");
|
|
|
|
export function getNoMessageTrayIcon () {
|
|
if (process.platform === 'darwin') {
|
|
return path.join(app.getAppPath(), './resources/tray/30x30.png')
|
|
} else if (process.platform === 'win32') {
|
|
return path.join(app.getAppPath(), './resources/tray/128x128.png')
|
|
} else if (screen.getPrimaryDisplay().scaleFactor > 1) {
|
|
return path.join(app.getAppPath(), './resources/tray/128x128.png')
|
|
} else {
|
|
return path.join(app.getAppPath(), './resources/tray/128x128.png')
|
|
}
|
|
} |