mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
25 lines
559 B
TypeScript
25 lines
559 B
TypeScript
import { isDev, isWin } from '@main/constant'
|
|
import { app } from 'electron'
|
|
|
|
import { getDataPath } from './utils'
|
|
|
|
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'
|
|
}
|
|
|
|
global.CHERRYAI_CLIENT_SECRET = import.meta.env.MAIN_VITE_CHERRYAI_CLIENT_SECRET
|