feat: review tray options
This commit is contained in:
1 parent
ecaeb7aa54
commit
1fc3ffa693
4 files changed
+67
-74
No files matched your search
@@ -4,6 +4,15 @@ import { fileURLToPath } from 'url'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
export interface TrayOptions {
|
||||
enabled: boolean,
|
||||
trayWindow: boolean,
|
||||
menu: boolean,
|
||||
tooltip: string,
|
||||
margin: {x: number, y: number},
|
||||
showAtStartup: boolean
|
||||
}
|
||||
|
||||
export default class Constants {
|
||||
// Display app name (uppercase first letter)
|
||||
static APP_NAME = name.charAt(0).toUpperCase() + name.slice(1)
|
||||
@@ -25,6 +34,17 @@ export default class Constants {
|
||||
preload: join(__dirname, '../preload/index.js')
|
||||
}
|
||||
|
||||
static DEFAULT_TRAY_OPTIONS : TrayOptions = {
|
||||
enabled: false,
|
||||
trayWindow: false,
|
||||
menu: false,
|
||||
tooltip: 'Vutron App',
|
||||
margin: {x:0, y:0},
|
||||
showAtStartup: false
|
||||
}
|
||||
|
||||
static APP_INDEX_URL_DEV = `${debug.env.VITE_DEV_SERVER_URL}/index.html`
|
||||
static APP_INDEX_URL_PROD = join(__dirname, '../index.html')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user