mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
fix: WCO color, settings icon position
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user