-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilythes has been renamed to Litest. This update includes: Compatibled with Dark mode Calcer is half completed Redesigned icon design Updated Prompt responses Fixed Small bugs and more updates... !!!This software was built using Electron.!!! Built at Windows 10 Home 2009 64bit. compatible with Windows 64bit environments, Linux 64bit environments (Intel or AMD CPUs) This language of software is Japanese only. Please use this software!!!
- Loading branch information
Showing
63 changed files
with
6,603 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
const {app, Menu, dialog, BrowserWindow}=require('electron'); | ||
const {resolve}=require('path'); | ||
let mainWindow, docsWindow; | ||
|
||
function newWindow(){ | ||
mainWindow=new BrowserWindow({ | ||
width: 1000, height: 600, | ||
useContentSize: true, | ||
minWidth: 500, minHeight: 300, | ||
webPreferences: { | ||
nodeIntegration: true | ||
} | ||
}); | ||
mainWindow.loadFile('software/index.html'); | ||
|
||
mainWindow.on('closed',()=>{mainWindow=null;}) | ||
} | ||
|
||
app.on('ready',newWindow); | ||
|
||
//for macOS | ||
app.on('window-all-closed',()=>{if(process.platform!=='darwin'){app.quit();}}) | ||
|
||
app.on('activative',()=>{if(mainWindow===null){newWindow();}}) | ||
|
||
var dia=()=>{ | ||
dialog.showMessageBox({ | ||
type: 'info', | ||
title: 'Litestについて', | ||
message: 'Litest v.2.0 Beta2 Build2103.01', | ||
detail: 'Made by Sorakime. Copyright 2021 Sorakime.', | ||
buttons: ['OK'], | ||
/*icon: resolve(__dirname, '/software/image/logo.png'); | ||
applicationName: 'Litest', | ||
applicationVersion: 'Ver. 2.0 Beta2', | ||
copyright: 'Copyright 2021 Sorakime', | ||
version: 'Build2103.01', | ||
credits: 'It was Built Electron', | ||
authors: ['Sorakime'], | ||
website: 'https://sorakime.github.io/mncr/litest', | ||
iconPath: 'software/image/logo.png'*/ | ||
})} | ||
|
||
var template=[{ | ||
label: '操作', | ||
submenu: [{label: 'Litestについて', accelerator: 'CmdOrCtrl+F1', click: dia},{ | ||
role: 'separator' | ||
},{ | ||
label: '再読み込み', | ||
accelerator: 'CmdOrCtrl+R', | ||
click(item, focusedWindow){if(focusedWindow)focusedWindow.reload();} | ||
},{ | ||
label: '終了', | ||
accelerator: 'CmdOrCtrl+Q', | ||
click(item, focusedWindow){if(focusedWindow)focusedWindow.close();} | ||
}]},{ | ||
label: '開発', | ||
submenu: [{ | ||
label: '開発者向けツール', | ||
accelerator: 'Alt+F12', | ||
click(item, focusedWindow){if(focusedWindow){ | ||
if(focusedWindow.webContents.isDevToolsFocused()!=true){ | ||
focusedWindow.webContents.openDevTools(); | ||
}else{ | ||
focusedWindow.webContents.closeDevTools(); | ||
} | ||
}} | ||
}]},{ | ||
label: 'ヘルプ', | ||
submenu: [{ | ||
label: 'ホームページ', | ||
click(item, fw){ | ||
docsWindow=new BrowserWindow({width: 900, height: 500}) | ||
docsWindow.loadURL('https://sorakime.github.io/mncr/litest'); | ||
}},{ | ||
label: 'GitHub', | ||
click(item, fw){ | ||
docsWindow=new BrowserWindow({width: 900, height: 500}) | ||
docsWindow.loadURL('https://github.com/Sorakime/Litest'); | ||
}},{ | ||
label: '更新を確認する(Ver.2.0 Beta2)', | ||
click(item, fw){ | ||
docsWindow=new BrowserWindow({width: 900, height: 500}) | ||
docsWindow.loadURL('https://github.com/Sorakime/Litest/releases'); | ||
}}] | ||
} | ||
] | ||
var menu=Menu.buildFromTemplate(template); | ||
|
||
Menu.setApplicationMenu(menu); |
Oops, something went wrong.