app/@overflow/commons/ui/component/window/window-controls.component.ts
crusader f770a24a10 ing
2018-08-15 23:54:10 +09:00

35 lines
589 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { ipcRenderer, remote } from 'electron';
@Component({
selector: 'app-window-controls',
templateUrl: './window-controls.component.html',
})
export class WindowControlsComponent implements OnInit {
private windowState: string;
constructor(
) { }
ngOnInit() {
}
onMinimize() {
remote.getCurrentWindow().minimize();
}
onRestore() {
remote.getCurrentWindow().unmaximize();
}
onMaximize() {
remote.getCurrentWindow().maximize();
}
onClose() {
remote.getCurrentWindow().close();
}
}