This commit is contained in:
crusader
2018-08-15 20:14:23 +09:00
parent 7111e03049
commit 8f4d7ec895
9 changed files with 537 additions and 23 deletions

View File

@@ -8,6 +8,7 @@
2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
</svg>
<of-app-menu-bar></of-app-menu-bar>
<of-window-controls></of-window-controls>
</div>

View File

@@ -1,24 +1,22 @@
<div class="window-controls">
<button aria-label="minimize" tabindex="-1" class="window-control minimize" (click)="onMinimize($event)">
<button aria-label="minimize" tabindex="-1" class="window-control minimize" (click)="onMinimize($event)">
<svg aria-hidden="true" version="1.1" width="10" height="10">
<path d="M 0,5 10,5 10,6 0,6 Z" />
</svg>
</button>
<ng-container [ngSwitch]="windowState">
<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 0,5 10,5 10,6 0,6 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>
</button>
<ng-container [ngSwitch]="windowState">
<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>
</button>
<button *ngSwitchDefault aria-label="maximize" tabindex="-1" class="window-control maximize" (click)="onMaximize($event)">
<svg aria-hidden="true" version="1.1" width="10" height="10">
<path d="M 0,0 0,10 10,10 10,0 Z M 1,1 9,1 9,9 1,9 Z" />
</svg>
</button>
</ng-container>
<button aria-label="close" tabindex="-1" class="window-control close" (click)="onClose($event)">
<button *ngSwitchDefault aria-label="maximize" tabindex="-1" class="window-control maximize" (click)="onMaximize($event)">
<svg aria-hidden="true" version="1.1" width="10" height="10">
<path d="M 0,0 0,0.7 4.3,5 0,9.3 0,10 0.7,10 5,5.7 9.3,10 10,10 10,9.3 5.7,5 10,0.7 10,0 9.3,0 5,4.3 0.7,0 Z" />
<path d="M 0,0 0,10 10,10 10,0 Z M 1,1 9,1 9,9 1,9 Z" />
</svg>
</button>
</div>
</ng-container>
<button aria-label="close" tabindex="-1" class="window-control close" (click)="onClose($event)">
<svg aria-hidden="true" version="1.1" width="10" height="10">
<path d="M 0,0 0,0.7 4.3,5 0,9.3 0,10 0.7,10 5,5.7 9.3,10 10,10 10,9.3 5.7,5 10,0.7 10,0 9.3,0 5,4.3 0.7,0 Z" />
</svg>
</button>