Counteract zoom-level changes in custom titlebar
This commit is contained in:
parent
dacbee711f
commit
9407654262
12 changed files with 123 additions and 34 deletions
|
@ -700,7 +700,16 @@ export async function startApp(): Promise<void> {
|
|||
},
|
||||
});
|
||||
|
||||
webFrame.setZoomFactor(window.Events.getZoomFactor());
|
||||
const zoomFactor = window.Events.getZoomFactor();
|
||||
webFrame.setZoomFactor(zoomFactor);
|
||||
document.body.style.setProperty('--zoom-factor', zoomFactor.toString());
|
||||
|
||||
window.addEventListener('resize', () => {
|
||||
document.body.style.setProperty(
|
||||
'--zoom-factor',
|
||||
webFrame.getZoomFactor().toString()
|
||||
);
|
||||
});
|
||||
|
||||
// How long since we were last running?
|
||||
const lastHeartbeat = toDayMillis(window.storage.get('lastHeartbeat', 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue