mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-29 07:49:53 +00:00
fixed window controls behaviour - fixes #3984
This commit is contained in:
parent
11cd42e56c
commit
a2ed674b10
@ -1,10 +1,10 @@
|
||||
button.btn.btn-secondary.btn-minimize(
|
||||
(click)='hostApp.minimize()',
|
||||
(click)='hostWindow.minimize()',
|
||||
)
|
||||
svg(version='1.1', width='10', height='10')
|
||||
path(d='M 0,5 10,5 10,6 0,6 Z')
|
||||
button.btn.btn-secondary.btn-maximize(
|
||||
(click)='hostApp.toggleMaximize()',
|
||||
(click)='hostWindow.toggleMaximize()',
|
||||
)
|
||||
svg(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')
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||
import { Component } from '@angular/core'
|
||||
import { HostAppService } from '../services/hostApp.service'
|
||||
import { HostWindowService } from '../api/hostWindow'
|
||||
import { AppService } from '../services/app.service'
|
||||
|
||||
/** @hidden */
|
||||
@ -10,7 +10,7 @@ import { AppService } from '../services/app.service'
|
||||
styles: [require('./windowControls.component.scss')],
|
||||
})
|
||||
export class WindowControlsComponent {
|
||||
private constructor (public hostApp: HostAppService, public app: AppService) { }
|
||||
private constructor (public hostWindow: HostWindowService, public app: AppService) { }
|
||||
|
||||
async closeWindow () {
|
||||
this.app.closeWindow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user