Update to use setZoomFactor method to handle UI scaling (#1110)

* Update UI Scale to apply zoom to body and not app container. This will fix tooltips being out of alignment

* Update to use electron's built in setZoomFactor method to handle UI scaling
This commit is contained in:
brandinio 2022-06-03 00:06:27 +01:00 committed by GitHub
parent bd27e50b51
commit c255420169
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -507,11 +507,9 @@ const app = new Vue({
history.forward() history.forward()
}, },
getHTMLStyle() { getHTMLStyle() {
if (app.cfg.visual.uiScale != 1) {
document.querySelector("#app").style.zoom = app.cfg.visual.uiScale ipcRenderer.send("setScreenScale", app.cfg.visual.uiScale);
} else {
document.querySelector("#app").style.zoom = ""
}
}, },
resetState() { resetState() {
this.menuPanel.visible = false; this.menuPanel.visible = false;