Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (34 sloc) 904 Bytes
var electron = require("electron");
var uygulama = electron.app;
var BrowserWindow = electron.BrowserWindow;
var anaPencere;
function pencereyiOlustur() {
anaPencere = new BrowserWindow({
width: 1500,
height: 900,
center: true,
icon: __dirname + "/app/img/is.png",
//frame: false
});
anaPencere.setMinimumSize(1200, 700);
anaPencere.loadURL(`file://${__dirname}/ana.html`);
anaPencere.webContents.openDevTools();
//anaPencere.setMenu(null);
//anaPencere.setFullScreen(true);
anaPencere.on('closed', function () {
anaPencere = null;
});
}
uygulama.on("ready", () => {
pencereyiOlustur();
});
uygulama.on("window-all-closed", () => {
if (process.platform !== 'darwin') {
uygulama.quit();
}
});
uygulama.on("activate", () => {
if (anaPencere === null) {
pencereyiOlustur();
}
});