mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
cleanup
This commit is contained in:
+3
-19
@@ -39,9 +39,8 @@ const nodePath =
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
// Load Icons
|
// Load Icons
|
||||||
// TODO: Icons appear pixelated
|
|
||||||
const trayIcon = path.join(__dirname, './assets/background.png');
|
const trayIcon = path.join(__dirname, './assets/background.png');
|
||||||
const appIcon = path.join(__dirname, './assets/images/logos/LOGO-512.png');
|
const appIcon = path.join(__dirname, './assets/logo.png');
|
||||||
|
|
||||||
function showNotification(text) {
|
function showNotification(text) {
|
||||||
new Notification({
|
new Notification({
|
||||||
@@ -100,6 +99,8 @@ function createWindow() {
|
|||||||
show: false,
|
show: false,
|
||||||
textAreasAreResizable: false,
|
textAreasAreResizable: false,
|
||||||
enableWebSQL: false,
|
enableWebSQL: false,
|
||||||
|
skipTaskbar: true,
|
||||||
|
darkTheme: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, './electron/preload.js'),
|
preload: path.join(__dirname, './electron/preload.js'),
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
@@ -113,22 +114,6 @@ function createWindow() {
|
|||||||
|
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
createWindow();
|
createWindow();
|
||||||
/* ======================================
|
|
||||||
* CONTEXT MENU CREATION ON REACT SIDE
|
|
||||||
// Create context menu
|
|
||||||
// const contextMenu = new Menu();
|
|
||||||
// contextMenu.append(
|
|
||||||
// new MenuItem({
|
|
||||||
// label: 'Build context menu here',
|
|
||||||
// })
|
|
||||||
// );
|
|
||||||
|
|
||||||
// open context menu when clicked
|
|
||||||
// win.webContents.on('context-menu', (e, params) => {
|
|
||||||
// contextMenu.popup(win, params.x, params.y);
|
|
||||||
// });
|
|
||||||
* ======================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
// register global shortcuts
|
// register global shortcuts
|
||||||
// (available regardless of wheter app is in focus)
|
// (available regardless of wheter app is in focus)
|
||||||
@@ -189,7 +174,6 @@ app.whenReady().then(() => {
|
|||||||
// TODO: Design better icon
|
// TODO: Design better icon
|
||||||
tray = new Tray(trayIcon);
|
tray = new Tray(trayIcon);
|
||||||
|
|
||||||
// TODO: Move to separate file
|
|
||||||
// Define context menu
|
// Define context menu
|
||||||
const trayMenuTemplate = [
|
const trayMenuTemplate = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user