Increase launcher UI scale
This commit is contained in:
@@ -37,6 +37,7 @@ webFrame.setVisualZoomLevelLimits(1, 1)
|
||||
|
||||
const BASE_WINDOW_WIDTH = 1400
|
||||
const BASE_WINDOW_HEIGHT = 860
|
||||
const UI_SCALE_MULTIPLIER = 1.12
|
||||
|
||||
let responsiveLayoutFrame = null
|
||||
let lastAppliedZoomFactor = null
|
||||
@@ -74,7 +75,7 @@ function applyResponsiveLayout(){
|
||||
const currentWindow = remote.getCurrentWindow()
|
||||
const contentBounds = currentWindow.getContentBounds()
|
||||
const scale = clamp(
|
||||
Math.min(contentBounds.width / BASE_WINDOW_WIDTH, contentBounds.height / BASE_WINDOW_HEIGHT),
|
||||
Math.min(contentBounds.width / BASE_WINDOW_WIDTH, contentBounds.height / BASE_WINDOW_HEIGHT) * UI_SCALE_MULTIPLIER,
|
||||
0.72,
|
||||
1.45
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user