Skip to content

Persist Zoom Level #954

Open
martpie wants to merge 3 commits intomasterfrom
persist-zoom-level
Open

Persist Zoom Level #954
martpie wants to merge 3 commits intomasterfrom
persist-zoom-level

Conversation

@martpie
Copy link
Copy Markdown
Owner

@martpie martpie commented Mar 17, 2026

Fix #953

  • Fix QA
  • Ensure that when zoom changes via hotkeys, the value is saved in config

Copilot AI review requested due to automatic review settings March 17, 2026 19:50
@martpie martpie changed the base branch from master to vite-plus March 17, 2026 19:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a persisted UI zoom-level setting so the app can restore interface scaling across launches (Tauri webview zoom + config persistence), along with supporting UI and translation updates.

Changes:

  • Introduces ui_zoom_level to the persisted config (Rust + generated TS typings) and applies it at window creation.
  • Adds a “Zoom level” numeric setting in the UI and a SettingsAPI.setUIZoomLevel helper to apply + persist changes.
  • Updates settings UI styling and refreshes translation catalogs with the new strings.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/translations/zh-TW.po Adds new Zoom-related msgids and updates source references.
src/translations/zh-CN.po Adds new Zoom-related msgids and updates source references.
src/translations/ru.po Adds new Zoom-related msgids and updates source references.
src/translations/ja.po Adds new Zoom-related msgids and updates source references.
src/translations/fr.po Adds new Zoom-related msgids and updates source references.
src/translations/es.po Adds new Zoom-related msgids and updates source references.
src/translations/en.po Adds English strings for the new Zoom setting and updates source references.
src/stores/SettingsAPI.ts Adds webview zoom setter and persists ui_zoom_level via config bridge.
src/routes/settings.ui.tsx Adds a new Settings UI numeric input for zoom level.
src/generated/typings.ts Updates generated Config type to include ui_zoom_level.
src/components/Setting.tsx Unifies <select> styling with the shared settingInput styles.
src-tauri/src/plugins/config.rs Adds ui_zoom_level to Rust config with default value.
src-tauri/src/main.rs Applies persisted zoom level to the main window on startup.
.vscode/settings.json Configures oxc.configPath to point at vite.config.ts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src-tauri/src/plugins/config.rs
Comment thread src/routes/settings.ui.tsx
Comment thread src/routes/settings.ui.tsx Outdated
Comment thread src/stores/SettingsAPI.ts
Comment thread src-tauri/src/main.rs
@martpie martpie force-pushed the persist-zoom-level branch 3 times, most recently from 9a5149b to 4daaf34 Compare March 17, 2026 21:31
@martpie martpie force-pushed the vite-plus branch 3 times, most recently from 7ea2fef to 3c764b7 Compare March 18, 2026 14:10
Base automatically changed from vite-plus to master March 18, 2026 14:10
@martpie martpie force-pushed the persist-zoom-level branch from 4daaf34 to cf6962d Compare March 18, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants