fix: linux window title style
This commit is contained in:
parent
6b9e58171b
commit
aa3812eddc
@ -33,6 +33,7 @@ export class WindowService {
|
|||||||
|
|
||||||
const theme = configManager.getTheme()
|
const theme = configManager.getTheme()
|
||||||
const isMac = process.platform === 'darwin'
|
const isMac = process.platform === 'darwin'
|
||||||
|
const isLinux = process.platform === 'linux'
|
||||||
|
|
||||||
this.mainWindow = new BrowserWindow({
|
this.mainWindow = new BrowserWindow({
|
||||||
x: mainWindowState.x,
|
x: mainWindowState.x,
|
||||||
@ -46,7 +47,7 @@ export class WindowService {
|
|||||||
transparent: isMac,
|
transparent: isMac,
|
||||||
vibrancy: 'under-window',
|
vibrancy: 'under-window',
|
||||||
visualEffectState: 'active',
|
visualEffectState: 'active',
|
||||||
titleBarStyle: 'hidden',
|
titleBarStyle: isLinux ? 'default' : 'hidden',
|
||||||
titleBarOverlay: theme === 'dark' ? titleBarOverlayDark : titleBarOverlayLight,
|
titleBarOverlay: theme === 'dark' ? titleBarOverlayDark : titleBarOverlayLight,
|
||||||
backgroundColor: isMac ? undefined : theme === 'dark' ? '#181818' : '#FFFFFF',
|
backgroundColor: isMac ? undefined : theme === 'dark' ? '#181818' : '#FFFFFF',
|
||||||
trafficLightPosition: { x: 8, y: 12 },
|
trafficLightPosition: { x: 8, y: 12 },
|
||||||
|
|||||||
@ -74,7 +74,7 @@ const HeaderNavbar: FC<Props> = ({ activeAssistant }) => {
|
|||||||
<SearchOutlined />
|
<SearchOutlined />
|
||||||
</NavbarIcon>
|
</NavbarIcon>
|
||||||
<AppStorePopover>
|
<AppStorePopover>
|
||||||
<NavbarIcon>
|
<NavbarIcon style={{ marginLeft: isMac ? 5 : 10 }}>
|
||||||
<i className="iconfont icon-appstore" />
|
<i className="iconfont icon-appstore" />
|
||||||
</NavbarIcon>
|
</NavbarIcon>
|
||||||
</AppStorePopover>
|
</AppStorePopover>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user