fix: WCO color, settings icon position

This commit is contained in:
Evan / Fero
2023-07-14 11:57:27 -07:00
parent 2f1c388a8b
commit e38b826fd6
4 changed files with 40 additions and 3 deletions

View File

@@ -96,11 +96,9 @@ export class Window {
bwOptions.titleBarStyle = 'hidden'
// If not macOS and native appearance is not toggled, use WCO.
} else {
bwOptions.titleBarStyle = 'hidden',
bwOptions.titleBarStyle = 'hidden'
bwOptions.titleBarOverlay = {
color: '#00000000',
symbolColor: '#ffffff',
height: 32,
}
}
}
@@ -394,6 +392,23 @@ export class Window {
this.setVibrancy(enabled, type)
})
ipcMain.on('window-set-window-controls-color', (event, theme) => {
if (!this.window || event.sender !== this.window.webContents) {
return
}
// let color: string = theme.backgroundMore
let symbolColor: string = theme.foreground
this.window.setTitleBarOverlay(
{
// color: '#00000000',
symbolColor: symbolColor,
height: 32,
}
)
})
ipcMain.on('window-set-title', (event, title) => {
if (!this.window || event.sender !== this.window.webContents) {
return