-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preferences: Support window.zoomLevel Preference #9121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes work very well for me 👍
I'm able to change the preference (either by inputting a new value or using keyboard shortcuts) and the zoom level adjusts almost instantly.
The code also looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. It will be good to have this feature. I did notice that the application always starts at default zoom and then switches to the required zoom. I suspect this is an Electron issue that there is nothing we can do anything about, as Electron does save the zoom amount itself.
packages/core/src/electron-browser/window/electron-window-preferences.ts
Outdated
Show resolved
Hide resolved
packages/core/src/electron-browser/menu/electron-menu-contribution.ts
Outdated
Show resolved
Hide resolved
266123f
to
fb88b6e
Compare
Fixes eclipse-theia#8751 What it does - Allows end-user to specify window zoom level as a preference - Adds support for the addition of other window preferences How to test 1. Open `Preferences` view and locate the `window.zoomLevel` preference 2. Enter in a custom value or change the zoom level using zoom commands (`ctrl +, ctrl -, ctrl 0`) 3. Observe that the window zoom level changes and the preference is updated in the `settings.json` file 4. Reload the window and observe that the preferred zoom level is restored Signed-off-by: seantan22 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes. It looks good on both Windows and Linux. It will be good to have this feature.
What it does
Fixes #8751
How to test
preferences-ui
and search for thewindow.zoomLevel
preference.ctrl +
,ctrl -
,ctrl 0
).settings.json
file.Review checklist
Reminder for reviewers
Signed-off-by: seantan22 [email protected]