Address feedback

This commit is contained in:
onkofonko 2024-09-05 19:18:50 +02:00
parent a3efe63b59
commit 7323c9ee2d
2 changed files with 5 additions and 6 deletions

View file

@ -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;

View file

@ -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 => {