Add app preferences to constants file
This commit is contained in:
parent
4be620c931
commit
8521b7dd08
2 changed files with 6 additions and 6 deletions
5
Dashboard/app/main/constants/index.js
Normal file
5
Dashboard/app/main/constants/index.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
//App preferences
|
||||
export const windowSize = { width: 620, height: 320 };
|
||||
export const windowOffset = 40;
|
||||
export const appIconPath = '../../dist-assets/icon.ico';
|
||||
export const trayIconPath = '../../dist-assets/tray.ico';
|
|
@ -2,12 +2,7 @@ import path from 'path';
|
|||
import { app, BrowserWindow, Menu, Tray } from 'electron';
|
||||
import screenz from 'screenz';
|
||||
import els from 'electron-localshortcut';
|
||||
|
||||
//App preferences
|
||||
const windowSize = { width: 620, height: 320 };
|
||||
const windowOffset = 40;
|
||||
const appIconPath = '../../dist-assets/icon.ico';
|
||||
const trayIconPath = '../../dist-assets/tray.ico';
|
||||
import { windowSize, windowOffset, appIconPath, trayIconPath } from './constants';
|
||||
|
||||
let mainWindow = null;
|
||||
let trayIcon = null;
|
||||
|
|
Reference in a new issue