mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 16:41:59 +00:00
Address feedback
This commit is contained in:
parent
a3efe63b59
commit
7323c9ee2d
2 changed files with 5 additions and 6 deletions
|
|
@ -79,8 +79,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.window-controls {
|
.window-controls {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(3, 46px);
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
@ -104,10 +103,10 @@
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
.window-controls .button:hover {
|
.window-controls .button:hover {
|
||||||
background: rgba(24, 24, 28, 0.2);
|
background: rgba(128, 128, 128, 0.2);
|
||||||
}
|
}
|
||||||
.window-controls .button:active {
|
.window-controls .button:active {
|
||||||
background: rgba(24, 24, 28, 0.4);
|
background: rgba(128, 128, 128, 0.4);
|
||||||
}
|
}
|
||||||
.close-button:hover {
|
.close-button:hover {
|
||||||
background: #e81123 !important;
|
background: #e81123 !important;
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,9 @@ export default class App {
|
||||||
this.mainWindow.on('closed', () => this.destroy())
|
this.mainWindow.on('closed', () => this.destroy())
|
||||||
this.webtorrentWindow.on('closed', () => this.destroy())
|
this.webtorrentWindow.on('closed', () => this.destroy())
|
||||||
ipcMain.on('close', () => this.destroy())
|
ipcMain.on('close', () => this.destroy())
|
||||||
ipcMain.on('minimize', () => BrowserWindow.getFocusedWindow()?.minimize())
|
ipcMain.on('minimize', () => this.mainWindow?.minimize())
|
||||||
ipcMain.on('maximize', () => {
|
ipcMain.on('maximize', () => {
|
||||||
const focusedWindow = BrowserWindow.getFocusedWindow()
|
const focusedWindow = this.mainWindow
|
||||||
focusedWindow?.isMaximized() ? focusedWindow.unmaximize() : focusedWindow.maximize()
|
focusedWindow?.isMaximized() ? focusedWindow.unmaximize() : focusedWindow.maximize()
|
||||||
});
|
});
|
||||||
app.on('before-quit', e => {
|
app.on('before-quit', e => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue