Skip to content

Commit 64cb9c3

Browse files
committed
feat: update HomeView styling and improve main window title bar behavior for macOS
1 parent e660eab commit 64cb9c3

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

packages/electron/src/main.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,17 @@ const createWindow = async () => {
9090
icon: '../images/128x128.png',
9191
width: 1280,
9292
height: 720,
93-
...('darwin' ? {vibrancy: 'sidebar',
94-
visualEffectState: 'active',
95-
transparent: true} : {}),
93+
...(process.platform === 'darwin' ?
94+
{
95+
vibrancy: 'sidebar',
96+
visualEffectState: 'active',
97+
transparent: true
98+
} : {}),
9699

97100
webPreferences: {
98101
preload: path.join(__dirname, 'preload.js'),
99102
},
100-
titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : 'hidden'
103+
titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : 'default'
101104
});
102105

103106
mainWindow.webContents.on("did-finish-load", () => {

packages/frontend/src/views/HomeView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ onBeforeUnmount(() => {
4545
<template>
4646
<div
4747
class="flex flex-col w-full h-full transition-all"
48-
:class="tabsStore.tabs.length ? 'app-bg' : ''"
48+
:class="tabsStore.tabs.length ? 'app-bg' : 'app-bg-no-mac'"
4949
>
5050
<WorkspaceTabsBar
5151
v-model:current-tab="tabsStore.currentTab"

0 commit comments

Comments
 (0)