cherry-studio/src/main/config.ts
beyondkmp b4a3a483e9
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
2025-08-22 12:30:07 +08:00

23 lines
477 B
TypeScript

import { app } from 'electron'
import { getDataPath } from './utils'
import { isWin, isDev } from '@main/constant'
if (isDev) {
app.setPath('userData', app.getPath('userData') + 'Dev')
}
export const DATA_PATH = getDataPath()
export const titleBarOverlayDark = {
height: 42,
color: isWin ? 'rgba(0,0,0,0.02)' : 'rgba(255,255,255,0)',
symbolColor: '#fff'
}
export const titleBarOverlayLight = {
height: 42,
color: 'rgba(255,255,255,0)',
symbolColor: '#000'
}