Add app preferences to constants file

This commit is contained in:
GHOSCHT 2020-08-08 23:00:20 +02:00
parent 4be620c931
commit 8521b7dd08
2 changed files with 6 additions and 6 deletions

View 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';

View file

@ -2,12 +2,7 @@ import path from 'path';
import { app, BrowserWindow, Menu, Tray } from 'electron'; import { app, BrowserWindow, Menu, Tray } from 'electron';
import screenz from 'screenz'; import screenz from 'screenz';
import els from 'electron-localshortcut'; import els from 'electron-localshortcut';
import { windowSize, windowOffset, appIconPath, trayIconPath } from './constants';
//App preferences
const windowSize = { width: 620, height: 320 };
const windowOffset = 40;
const appIconPath = '../../dist-assets/icon.ico';
const trayIconPath = '../../dist-assets/tray.ico';
let mainWindow = null; let mainWindow = null;
let trayIcon = null; let trayIcon = null;