mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 22:52:08 +08:00
* feat: add zoom factor setting and localization support - Introduced App_SetZoomFactor IPC channel for managing zoom levels. - Implemented zoom factor functionality in the main IPC handler. - Added setZoomFactor method in the settings store and corresponding UI in DisplaySettings. - Included localization for zoom settings in English and Chinese. * add i18n * recover file * delete code * fix: update zoom factor handling to apply to all windows - Modified the IPC handler for App_SetZoomFactor to set the zoom factor for all non-destroyed windows instead of just the main window. * add getzoomfactor api * feat: synchronize zoom factor with Redux state on app initialization - Added functionality to fetch the zoom factor from the main process and dispatch it to the Redux store during app initialization. - Removed redundant zoom factor fetching logic from DisplaySettings component. * feat: enhance zoom factor management with IPC updates - Added a new IPC channel for zoom factor updates to notify all renderer processes. - Introduced a constant for predefined zoom levels to streamline zoom adjustments. - Updated the zoom handling logic to utilize the new zoom levels and ensure smooth transitions. - Implemented a listener in the preload script to handle zoom factor updates from the main process. - Refactored the app initialization to include real-time updates for the zoom factor in the Redux state. * feat: integrate zoom options into DisplaySettings component - Added ZOOM_OPTIONS constant to generate structured options for Ant Design Select from predefined zoom levels. - Refactored DisplaySettings to utilize ZOOM_OPTIONS, removing redundant zoom option definitions. - Simplified the zoom factor fetching logic in useAppInit for better readability and efficiency. * refactor: streamline zoom factor handling and remove unused IPC channel - Removed the App_GetZoomFactor IPC channel as it was no longer needed. - Updated zoom factor handling to directly set and notify the main window of changes. - Simplified the logic for setting the zoom factor in the WindowService and ShortcutService. - Adjusted the useAppInit hook to utilize the new zoom factor management approach. * refactor: improve zoom factor handling in WindowService and useAppInit hook - Simplified the zoom factor setting in WindowService by directly using the config manager. - Updated useAppInit to ensure the zoom factor is set correctly on initialization, enhancing responsiveness to changes. |
||
|---|---|---|
| .. | ||
| constant.ts | ||
| nutstore.ts | ||
| types.ts | ||