import { join } from 'path' import { homedir } from 'os' const defaultSetting: LX.AppSetting = { version: '2.0.0', 'common.windowSizeId': 3, 'common.fontSize': 16, 'common.startInFullscreen': false, 'common.langId': null, 'common.apiSource': 'temp', 'common.sourceNameType': 'alias', 'common.font': '', 'common.isShowAnimation': true, 'common.randomAnimate': true, 'common.isAgreePact': false, 'common.controlBtnPosition': process.platform === 'darwin' ? 'left' : 'right', 'common.playBarProgressStyle': 'mini', 'player.startupAutoPlay': false, 'player.togglePlayMethod': 'listLoop', 'player.highQuality': false, 'player.isShowTaskProgess': true, 'player.volume': 1, 'player.isMute': false, 'player.mediaDeviceId': 'default', 'player.isMediaDeviceRemovedStopPlay': false, 'player.isShowLyricTranslation': false, 'player.isShowLyricRoma': false, 'player.isS2t': false, 'player.isPlayLxlrc': false, 'player.isSavePlayTime': false, 'player.audioVisualization': false, 'player.waitPlayEndStop': true, 'player.waitPlayEndStopTime': '', 'player.autoSkipOnError': true, 'playDetail.isZoomActiveLrc': false, 'playDetail.isShowLyricProgressSetting': false, 'playDetail.style.fontSize': 100, 'playDetail.style.align': 'center', 'desktopLyric.enable': false, 'desktopLyric.isLock': false, 'desktopLyric.isAlwaysOnTop': false, 'desktopLyric.isAlwaysOnTopLoop': false, 'desktopLyric.isShowTaskbar': false, 'desktopLyric.audioVisualization': false, 'desktopLyric.width': 450, 'desktopLyric.height': 300, 'desktopLyric.x': null, 'desktopLyric.y': null, 'desktopLyric.isLockScreen': true, 'desktopLyric.isDelayScroll': true, 'desktopLyric.scrollAlign': 'center', 'desktopLyric.isHoverHide': false, 'desktopLyric.direction': 'horizontal', 'desktopLyric.style.align': 'center', 'desktopLyric.style.font': '', 'desktopLyric.style.fontSize': 20, 'desktopLyric.style.lineGap': 15, 'desktopLyric.style.lyricUnplayColor': 'rgba(255, 255, 255, 1)', 'desktopLyric.style.lyricPlayedColor': 'rgba(7, 197, 86, 1)', 'desktopLyric.style.lyricShadowColor': 'rgba(0, 0, 0, 0.15)', // 'desktopLyric.style.fontWeight': false, 'desktopLyric.style.opacity': 95, 'desktopLyric.style.ellipsis': false, 'desktopLyric.style.isZoomActiveLrc': true, 'desktopLyric.style.isFontWeightFont': true, 'desktopLyric.style.isFontWeightLine': false, 'list.isClickPlayList': false, 'list.isShowSource': true, 'list.isSaveScrollLocation': true, 'list.addMusicLocationType': 'top', 'list.actionButtonsVisible': false, 'download.enable': false, 'download.savePath': join(homedir(), 'Desktop'), 'download.fileName': '歌名 - 歌手', 'download.maxDownloadNum': 3, 'download.skipExistFile': true, 'download.isDownloadLrc': false, 'download.isDownloadTLrc': false, 'download.isDownloadRLrc': false, 'download.lrcFormat': 'utf8', 'download.isEmbedPic': true, 'download.isEmbedLyric': false, 'download.isUseOtherSource': false, 'search.isShowHotSearch': false, 'search.isShowHistorySearch': false, 'search.isFocusSearchBox': false, 'network.proxy.enable': false, 'network.proxy.host': '', 'network.proxy.port': '', 'network.proxy.username': '', 'network.proxy.password': '', 'tray.enable': false, // 'tray.isToTray': false, 'tray.themeId': 0, 'sync.enable': false, 'sync.port': '23332', 'theme.id': 'blue_plus', // 'theme.id': 'green', 'theme.lightId': 'green', 'theme.darkId': 'black', 'odc.isAutoClearSearchInput': false, 'odc.isAutoClearSearchList': false, } // 使用新年皮肤 if (new Date().getMonth() < 2) { defaultSetting['theme.id'] = 'happy_new_year' defaultSetting['desktopLyric.style.lyricPlayedColor'] = 'rgba(255, 57, 71, 1)' } export default defaultSetting