Shows old windows style title bar when maximized.

But in normal window it works fine.

mica-electron version 1.5.3
function createWindow(): void {
const mainWindow = new MicaBrowserWindow({
width: 1100,
height: 600,
show: false,
titleBarStyle: 'default',
autoHideMenuBar: true,
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
sandbox: false
}
})
mainWindow.setDarkTheme()
mainWindow.setMicaEffect()
mainWindow.on('ready-to-show', () => {
mainWindow.show()
})
mainWindow.webContents.setWindowOpenHandler((details) => {
shell.openExternal(details.url)
return { action: 'deny' }
})
// HMR for renderer base on electron-vite cli.
// Load the remote URL for development or the local html file for production.
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL'])
} else {
mainWindow.loadFile(join(__dirname, '../renderer/index.html'))
}
}
Is there any solution?
Shows old windows style title bar when maximized.
But in normal window it works fine.
mica-electron version 1.5.3