-
Notifications
You must be signed in to change notification settings - Fork 267
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
[Feature]: Customize default window size and zoom #1613
Comments
Hi, can I work on this? |
Of course! Assigning to you |
Updated the ask for |
Hey @esimkowitz I'm sorry for asking as I am new to this. For the first part of making sure that window size gets overridden, a combination of ScaleFactor and relative views like percentage can be used? ScaleFactor makes sure that the physical and logical pixels of devices with different resolutions maintain a uniform view. For the zoom, I did not quite what get the requirement is. Also, I noticed another error, when zooming out, when I was pressing ctrl + '-' continuously, the app crashed. this was fixed when I replaced this code
with this
|
Yeah that new logic makes sense to me, good catch! Could you do the same for the zoom in logic? Also could you consolidate those zoom functions in menu.ts so they don't duplicate logic? |
I think for the default zoom factor, it's just whatever the user defines is the default when a new window gets created and the value we set it back to when they use the Cmd:0 keyboard shortcut. We should let them still zoom in/out manually |
fixed issue #1613 partially, added window:dimensions as a setting which gives the user to define dimensions. fixed the zoom in and out logic to prevent the app from crashing. Had issues with getting setting zoomfactor in emain-tabview.ts. will fix it
Feature description
Add a configuration to override the default new window size and zoom so users with larger/smaller monitors can get the best experience.
Implementation Suggestion
Add
window:dimensions
setting with a string value{X}x{Y}
where the units are pixels. This can be applied inemain-window.ts
when the Electron BaseWindow object gets initialized.Add
window:zoom
setting with a float value that defaults to 1. This can be applied inemain-tabview.ts
, where the WebContentsView gets initialized. This can be overridden by different tabs too.Anything else?
No response
The text was updated successfully, but these errors were encountered: