diff --git a/src/main/main.ts b/src/main/main.ts index 0b43c76b..0f54031e 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -85,10 +85,12 @@ else { ipcMain.on('refresh-theme-settings', () => { const appTheme = persistentStore.get('application_theme'); - mainWindow.setTitleBarOverlay({ - color: appTheme === 'dark' ? '#3f3f3f' : '#fff', - symbolColor: appTheme === 'dark' ? '#fff' : '#000' - }); + if(isWindows){ + mainWindow.setTitleBarOverlay({ + color: appTheme === 'dark' ? '#3f3f3f' : '#fff', + symbolColor: appTheme === 'dark' ? '#fff' : '#000' + }); + } }); ipcMain.on('change-window-title', (event, title: string) => { diff --git a/src/renderer/components/TheSettingBar.vue b/src/renderer/components/TheSettingBar.vue index 7ebf58e1..f018ea57 100644 --- a/src/renderer/components/TheSettingBar.vue +++ b/src/renderer/components/TheSettingBar.vue @@ -98,6 +98,7 @@ export default { data () { return { dragElement: null, + isLinux: process.platform === 'linux', isContext: false, isDragging: false, contextEvent: null, @@ -129,7 +130,9 @@ export default { }, tooltipPosition (e) { const el = e.target ? e.target : e; - const fromTop = window.scrollY + el.getBoundingClientRect().top - (el.offsetHeight / 4); + const fromTop = this.isLinux + ? window.scrollY + el.getBoundingClientRect().top + (el.offsetHeight / 4) + : window.scrollY + el.getBoundingClientRect().top - (el.offsetHeight / 4) el.querySelector('.ex-tooltip-content').style.top = `${fromTop}px`; }, getStatusBadge (uid) {