feat: 新增启动器界面缩放设置
在高缩放/小屏下,内嵌网页(如皮肤站)顶栏会被裁掉。新增“界面 与外观”中的“启动器缩放”设置,可整体缩放启动器界面。 - 新增 helpers/ui-scale.ts:用 localStorage 保存缩放值(纯本地 显示偏好,无需后端),并通过 CSS zoom 应用缩放(含内嵌网页)。 - App.vue 启动时调用 installUiScale() 应用已保存的缩放。 - AppearanceSettings.vue 新增缩放设置项:100/110/125/150 预设 加 50–200 滑条自定义。
This commit is contained in:
1 parent
d8a6d44890
commit
94cbcef324
3 files changed
+118
No files matched your search
@@ -141,6 +141,7 @@ import {
|
||||
isNetworkMetered,
|
||||
setRestartAfterPendingUpdate,
|
||||
} from '@/helpers/utils.js'
|
||||
import { installUiScale } from '@/helpers/ui-scale'
|
||||
import { start_join_server, start_join_singleplayer_world } from '@/helpers/worlds.ts'
|
||||
import i18n, { resolveInitialLocale } from '@/i18n.config'
|
||||
import {
|
||||
@@ -1273,6 +1274,8 @@ provide('previewMinecraftCrashModal', () => minecraftCrashModal.value?.showPrevi
|
||||
provide('showLauncherPopup', (_request: unknown) => {})
|
||||
provide('showStartupAnnouncement', () => startupAnnouncementModal.value?.show())
|
||||
|
||||
installUiScale()
|
||||
|
||||
const stateFailed = ref(false)
|
||||
stateInitialization
|
||||
.then(() => {
|
||||
|
||||
Reference in new issue
Block a user