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,
|
||||
title: "Cider",
|
||||
vibrancy: 'dark',
|
||||
transparent: true,
|
||||
// transparent: true,
|
||||
hasShadow: false,
|
||||
webPreferences: {
|
||||
webviewTag: true,
|
||||
|
@ -194,10 +194,6 @@ const CiderBase = {
|
|||
ipcMain.on('setScreenScale', (event, 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
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue