mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 15:10:59 +08:00
- Removed the App_SetTheme IPC channel and related theme management code. - Updated imports to use preferenceTypes for theme and selection action items. - Refactored preference service to preload preferences and adjusted related components. - Cleaned up unused code and comments related to theme management. - Enhanced the organization of preference-related types and actions for better maintainability.
23 lines
1.1 KiB
TypeScript
23 lines
1.1 KiB
TypeScript
/**
|
||
* 数据重构,临时存放的默认值,需在全部完成后重新整理,并整理到preferences.ts中
|
||
*/
|
||
|
||
import type { SelectionActionItem } from './preferenceTypes'
|
||
|
||
export const defaultActionItems: SelectionActionItem[] = [
|
||
{ id: 'translate', name: 'selection.action.builtin.translate', enabled: true, isBuiltIn: true, icon: 'languages' },
|
||
{ id: 'explain', name: 'selection.action.builtin.explain', enabled: true, isBuiltIn: true, icon: 'file-question' },
|
||
{ id: 'summary', name: 'selection.action.builtin.summary', enabled: true, isBuiltIn: true, icon: 'scan-text' },
|
||
{
|
||
id: 'search',
|
||
name: 'selection.action.builtin.search',
|
||
enabled: true,
|
||
isBuiltIn: true,
|
||
icon: 'search',
|
||
searchEngine: 'Google|https://www.google.com/search?q={{queryString}}'
|
||
},
|
||
{ id: 'copy', name: 'selection.action.builtin.copy', enabled: true, isBuiltIn: true, icon: 'clipboard-copy' },
|
||
{ id: 'refine', name: 'selection.action.builtin.refine', enabled: false, isBuiltIn: true, icon: 'wand-sparkles' },
|
||
{ id: 'quote', name: 'selection.action.builtin.quote', enabled: false, isBuiltIn: true, icon: 'quote' }
|
||
]
|