Closed WizardCM closed 1 year ago
Adds the ability for a user to control the zoom level of a browser dock using keyboard shortcuts.
Ctrl + 0 resets zoom, like a normal browser.
Attempts to use the same % values as browsers.
Also adds a Reset option to the context menu when zoom is not 100%.
Verify the zoom level using the following in the Inspect window:
Math.round(window.devicePixelRatio * 100);
Note that zoom level does not persist across restarts. However, even in this initial implementation it's more useful than not having it. Zoom level now persists thanks to https://github.com/obsproject/obs-browser/commit/4236b56fbe4706de17617b2fe69370b031294b29
https://user-images.githubusercontent.com/941350/226282748-f2b495bf-5d8e-4a1f-9d89-bec84a745b92.mp4
https://user-images.githubusercontent.com/941350/226282777-c6a7daef-d0d9-452a-bf1d-d9d9a093c0a6.mp4
On Windows.
Couple of updates since the original PR:
Description
Adds the ability for a user to control the zoom level of a browser dock using keyboard shortcuts.
Ctrl + 0 resets zoom, like a normal browser.
Attempts to use the same % values as browsers.
Also adds a Reset option to the context menu when zoom is not 100%.
Verify the zoom level using the following in the Inspect window:
Math.round(window.devicePixelRatio * 100);
Note that zoom level does not persist across restarts. However, even in this initial implementation it's more useful than not having it.Zoom level now persists thanks to https://github.com/obsproject/obs-browser/commit/4236b56fbe4706de17617b2fe69370b031294b29https://user-images.githubusercontent.com/941350/226282748-f2b495bf-5d8e-4a1f-9d89-bec84a745b92.mp4
https://user-images.githubusercontent.com/941350/226282777-c6a7daef-d0d9-452a-bf1d-d9d9a093c0a6.mp4
Motivation and Context
How Has This Been Tested?
On Windows.
Types of changes
Checklist: