-
-
Notifications
You must be signed in to change notification settings - Fork 489
Limit interface scale #1502
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
Limit interface scale #1502
Conversation
Do you plan to get rid of the local settings
field? Is this PR still in progress? See here: #1502 (comment).
Do you plan to get rid of the local settings field? Is this PR still in progress? See here: #1502 (comment).
@kittaakos I've already got rid of currentScale
because it wasn't necessary (see last commit). About currentSettings
– as stated in this comment → #1502 (comment) – I can't remove it because it's not only a duplicate but it also serves as temporary value in order to make the debouncing work correctly (see how I update the settings here)
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.
Thank you! I checked the code and left a few remarks.
arduino-ide-extension/src/browser/contributions/interface-scale.ts
Outdated
Show resolved
Hide resolved
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.
I have noticed some inconsistency between the disabled/enabled state of the menu item and the current editor.fontSize
value.
Decrease expected to be disabled here:
Screen Shot 2022年10月04日 at 09 07 56
Increase expected to be disabled here:
Screen Shot 2022年10月04日 at 09 06 00
Decrease expected to be enabled here:
I have noticed some inconsistency between the disabled/enabled state of the menu item and the current editor.fontSize value.
Thank you @kittaakos, I wasn't registering the menus properly after changing fontScalingEnabled
. Fixed in this commit.
I also the menu items weren't updating when changing the autoScaleInterface
setting, so I also fixed that in the last commit
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.
I verified it fixes #1384
Thanks Alberto!
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.
It's working great. Thank you!
2ec546f
to
b118a1f
Compare
Motivation
The interface scaling of the IDE doesn't handle scaling properly:
CTRL/CMD + =
for a while), the interface seems to 'bounce' from bigger to smaller and viceversa until it's stableChange description
Automatic
flag in the settings dialog is checked, enable/disable the 'Increase/Decrease Font Size' menu item and shortcuts when reaching-60%
(min) and280%
(max)Automatic
flag in the settings dialog is unchecked, enable/disable the 'Increase/Decrease Font Size' menu item and shortcuts when reaching8
(min) and72
(max)Other information
Since Theia doesn't support dynamic menu items, to achieve this I needed to dispose the menu items and re-register them, and then update the
mainMenuManager
manually, otherwise they wouldn't get updated as expected.Reviewer checklist