From 79cabb6edac5ea14fbd80f05d66df8d7f9db10ff Mon Sep 17 00:00:00 2001 From: Andrii Zhovtiak Date: Wed, 9 Aug 2023 19:15:46 +0300 Subject: [PATCH] Fix issue with setTitleBarOverlay method on non-win32 platforms. --- app/lib/window.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/lib/window.ts b/app/lib/window.ts index a73386b102..5523d2c7d8 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -392,14 +392,15 @@ export class Window { return } - const symbolColor: string = theme.foreground - - this.window.setTitleBarOverlay( - { - symbolColor: symbolColor, - height: 32, - }, - ) + if (process.platform === 'win32') { + const symbolColor: string = theme.foreground + this.window.setTitleBarOverlay( + { + symbolColor: symbolColor, + height: 32, + }, + ) + } }) ipcMain.on('window-set-title', (event, title) => {