添加主题字体颜色设置
This commit is contained in:
@@ -5,7 +5,6 @@ import { STORE_NAMES, URL_SCHEME_RXP } from '@common/constants'
|
||||
import defaultSetting from '@common/defaultSetting'
|
||||
import defaultHotKey from '@common/defaultHotKey'
|
||||
import { migrateDataJson, migrateHotKey, migrateUserApi, parseDataFile } from './migrate'
|
||||
import { commonColorNames, commonLightColorValues, commonDarkColorValues } from '@common/config'
|
||||
import { nativeTheme } from 'electron'
|
||||
import { joinPath } from '@common/utils/nodejs'
|
||||
import themes from '@common/theme/index.json'
|
||||
@@ -263,11 +262,6 @@ export const getTheme = () => {
|
||||
...theme.config.extInfo,
|
||||
}
|
||||
|
||||
const vals = theme.isDark ? commonDarkColorValues : commonLightColorValues
|
||||
for (let i = commonColorNames.length; i--;) {
|
||||
colors[commonColorNames[i]] = vals[i]
|
||||
}
|
||||
|
||||
return {
|
||||
shouldUseDarkColors,
|
||||
theme: {
|
||||
|
||||
Reference in New Issue
Block a user