From c255420169fa184ea535b98489a5a9079d1431f7 Mon Sep 17 00:00:00 2001 From: brandinio Date: Fri, 3 Jun 2022 00:06:27 +0100 Subject: [PATCH] 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 --- src/renderer/main/vueapp.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 8f6b657c..06cdedd8 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -507,11 +507,9 @@ const app = new Vue({ history.forward() }, getHTMLStyle() { - if (app.cfg.visual.uiScale != 1) { - document.querySelector("#app").style.zoom = app.cfg.visual.uiScale - } else { - document.querySelector("#app").style.zoom = "" - } + + ipcRenderer.send("setScreenScale", app.cfg.visual.uiScale); + }, resetState() { this.menuPanel.visible = false;