| | |
| | | import type { DeepPartial } from '..\..\base\typings\src'; |
| | | import type { DeepPartial } from '../../base/typings/src'; |
| | | |
| | | import type { |
| | | CustomPreferencesField, |
| | |
| | | |
| | | import { markRaw, reactive, readonly, watch } from 'vue'; |
| | | |
| | | import { StorageManager } from '..\..\base\shared\src\cache'; |
| | | import { isMacOs, merge } from '..\..\base\shared\src\utils'; |
| | | import { StorageManager } from '../../base/shared/src/cache'; |
| | | import { isMacOs, merge } from '../../base/shared/src/utils'; |
| | | |
| | | import { |
| | | breakpointsTailwind, |
| | |
| | | * @param updates - 更新的偏好设置 |
| | | */ |
| | | private handleUpdates(updates: DeepPartial<Preferences>) { |
| | | const { theme, app } = updates; |
| | | const { theme, app, navigation } = updates; |
| | | |
| | | if ( |
| | | theme && |
| | | (Object.keys(theme).length > 0 || Reflect.has(theme, 'fontSize')) |
| | | (theme && |
| | | (Object.keys(theme).length > 0 || Reflect.has(theme, 'fontSize'))) || |
| | | (navigation && Reflect.has(navigation, 'fontSize')) || |
| | | (app && Reflect.has(app, 'homeFontSize')) |
| | | ) { |
| | | updateCSSVariables(this.state); |
| | | } |