Increase launcher UI scale
Some checks failed
Build / release (macos-latest) (push) Has been cancelled
Build / release (ubuntu-latest) (push) Has been cancelled
Build / release (windows-latest) (push) Has been cancelled
Windows Smoke Test / windows-smoke (push) Has been cancelled

This commit is contained in:
2026-05-04 15:40:29 +09:00
parent 363fd11f63
commit aceec8ba5c

View File

@@ -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
)