Skip to content
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

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

seantan22
Copy link
Contributor

@seantan22 seantan22 commented Feb 24, 2021

What it does

Fixes #8751

  • Allows end-user to specify window zoom level as a preference.
  • Adds support for the addition of other electron window preferences.

image

How to test

  1. Open preferences-ui and search for 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 that the preference is updated in the settings.json file.
  4. Reload the window and observe that the preferred zoom level is restored.

Review checklist

Reminder for reviewers

Signed-off-by: seantan22 [email protected]

@vince-fugnitto vince-fugnitto added electron issues related to the electron target preferences issues related to preferences labels Feb 24, 2021
Copy link
Contributor

@DucNgn DucNgn left a 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.

Copy link
Contributor

@westbury westbury left a 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.

@seantan22 seantan22 force-pushed the st/zoom-level branch 3 times, most recently from 266123f to fb88b6e Compare March 2, 2021 16:36
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]>
Copy link
Contributor

@westbury westbury left a 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.

@westbury westbury merged commit 734f49f into eclipse-theia:master Mar 4, 2021
@vince-fugnitto vince-fugnitto added this to the 1.12.0 milestone Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron issues related to the electron target preferences issues related to preferences
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support window.zoomLevel setting
4 participants