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; @ViewChild('container') containerViewChild: ElementRef;
private readonly popup = true; readonly popup = true;
container: HTMLDivElement; container: HTMLDivElement;

View File

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

View File

@ -4,7 +4,7 @@
</svg> </svg>
</button> </button>
<ng-container [ngSwitch]="windowState"> <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"> <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" /> <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> </svg>

View File

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