This commit is contained in:
crusader 2018-09-06 11:17:32 +09:00
parent 559d5a3dd8
commit 675fb6b992
4 changed files with 12 additions and 12 deletions

View File

@ -38,7 +38,7 @@ export class PopupPanelComponent implements OnDestroy {
@ViewChild('container') containerViewChild: ElementRef;
private readonly popup = true;
readonly popup = true;
container: HTMLDivElement;

View File

@ -6,10 +6,10 @@ import { Component, OnInit } from '@angular/core';
})
export class TitleBarComponent implements OnInit {
private style: string;
private titleBarClass: string;
private showTopResize: boolean;
private showLeftResize: boolean;
style: string;
titleBarClass: string;
showTopResize: boolean;
showLeftResize: boolean;
constructor(
) { }
@ -17,6 +17,6 @@ export class TitleBarComponent implements OnInit {
ngOnInit() {
}
onTitlebarDoubleClick() {
onTitlebarDoubleClick(event) {
}
}

View File

@ -4,7 +4,7 @@
</svg>
</button>
<ng-container [ngSwitch]="windowState">
<button *ngSwitchCase="maximized" aria-label="restore" tabindex="-1" class="window-control restore" (click)="onRestore($event)">
<button *ngSwitchCase="'maximized'" aria-label="restore" tabindex="-1" class="window-control restore" (click)="onRestore($event)">
<svg aria-hidden="true" version="1.1" width="10" height="10">
<path d="m 2,1e-5 0,2 -2,0 0,8 8,0 0,-2 2,0 0,-8 z m 1,1 6,0 0,6 -1,0 0,-5 -5,0 z m -2,2 6,0 0,6 -6,0 z" />
</svg>

View File

@ -7,7 +7,7 @@ import { ipcRenderer, remote } from 'electron';
})
export class WindowControlsComponent implements OnInit {
private windowState: string;
windowState: string;
constructor(
) { }
@ -15,19 +15,19 @@ export class WindowControlsComponent implements OnInit {
ngOnInit() {
}
onMinimize() {
onMinimize(event) {
remote.getCurrentWindow().minimize();
}
onRestore() {
onRestore(event) {
remote.getCurrentWindow().unmaximize();
}
onMaximize() {
onMaximize(event) {
remote.getCurrentWindow().maximize();
}
onClose() {
onClose(event) {
remote.getCurrentWindow().close();
}