fix the scalings
This commit is contained in:
parent
cc876f7247
commit
6525110c61
2 changed files with 3 additions and 5 deletions
|
@ -38,7 +38,7 @@ const CiderBase = {
|
||||||
frame: false,
|
frame: false,
|
||||||
title: "Cider",
|
title: "Cider",
|
||||||
vibrancy: 'dark',
|
vibrancy: 'dark',
|
||||||
transparent: true,
|
// transparent: true,
|
||||||
hasShadow: false,
|
hasShadow: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
webviewTag: true,
|
webviewTag: true,
|
||||||
|
@ -194,10 +194,6 @@ const CiderBase = {
|
||||||
ipcMain.on('setScreenScale', (event, scale) => {
|
ipcMain.on('setScreenScale', (event, scale) => {
|
||||||
win.webContents.setZoomFactor(parseFloat(scale))
|
win.webContents.setZoomFactor(parseFloat(scale))
|
||||||
})
|
})
|
||||||
var mainScreen = screen.getPrimaryDisplay();
|
|
||||||
var dimensions = mainScreen.size;
|
|
||||||
var screenWidth = dimensions.width;
|
|
||||||
win.webContents.setZoomFactor(screenWidth / 1536)
|
|
||||||
return win
|
return win
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -2572,3 +2572,5 @@ async function webGPU() {
|
||||||
|
|
||||||
webGPU().then()
|
webGPU().then()
|
||||||
|
|
||||||
|
let screenWidth = screen.width;
|
||||||
|
ipcRenderer.send("setScreenScale" ,screenWidth / 1536)
|
Loading…
Add table
Add a link
Reference in a new issue