mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-25 05:01:58 +08:00
fix: change title bar overlay color for windows (#9407)
* fix: update titleBarOverlayDark color for improved visibility * refactor: import isDev and isWin constants for cleaner configuration
This commit is contained in:
parent
76c025d53b
commit
b4a3a483e9
@ -1,7 +1,7 @@
|
||||
import { app } from 'electron'
|
||||
|
||||
import { getDataPath } from './utils'
|
||||
const isDev = process.env.NODE_ENV === 'development'
|
||||
import { isWin, isDev } from '@main/constant'
|
||||
|
||||
if (isDev) {
|
||||
app.setPath('userData', app.getPath('userData') + 'Dev')
|
||||
@ -11,7 +11,7 @@ export const DATA_PATH = getDataPath()
|
||||
|
||||
export const titleBarOverlayDark = {
|
||||
height: 42,
|
||||
color: 'rgba(255,255,255,0)',
|
||||
color: isWin ? 'rgba(0,0,0,0.02)' : 'rgba(255,255,255,0)',
|
||||
symbolColor: '#fff'
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user