ing
This commit is contained in:
parent
559d5a3dd8
commit
675fb6b992
|
@ -38,7 +38,7 @@ export class PopupPanelComponent implements OnDestroy {
|
|||
|
||||
@ViewChild('container') containerViewChild: ElementRef;
|
||||
|
||||
private readonly popup = true;
|
||||
readonly popup = true;
|
||||
|
||||
container: HTMLDivElement;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user