mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +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 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 46px);
|
||||
display: flex;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
|
|
@ -104,10 +103,10 @@
|
|||
user-select: none;
|
||||
}
|
||||
.window-controls .button:hover {
|
||||
background: rgba(24, 24, 28, 0.2);
|
||||
background: rgba(128, 128, 128, 0.2);
|
||||
}
|
||||
.window-controls .button:active {
|
||||
background: rgba(24, 24, 28, 0.4);
|
||||
background: rgba(128, 128, 128, 0.4);
|
||||
}
|
||||
.close-button:hover {
|
||||
background: #e81123 !important;
|
||||
|
|
|
|||
|
|
@ -60,9 +60,9 @@ export default class App {
|
|||
this.mainWindow.on('closed', () => this.destroy())
|
||||
this.webtorrentWindow.on('closed', () => this.destroy())
|
||||
ipcMain.on('close', () => this.destroy())
|
||||
ipcMain.on('minimize', () => BrowserWindow.getFocusedWindow()?.minimize())
|
||||
ipcMain.on('minimize', () => this.mainWindow?.minimize())
|
||||
ipcMain.on('maximize', () => {
|
||||
const focusedWindow = BrowserWindow.getFocusedWindow()
|
||||
const focusedWindow = this.mainWindow
|
||||
focusedWindow?.isMaximized() ? focusedWindow.unmaximize() : focusedWindow.maximize()
|
||||
});
|
||||
app.on('before-quit', e => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue