新功能: - 根据用户屏幕尺寸自动调整窗口大小 - 支持小屏幕、中等屏幕、大屏幕、超宽屏的智能适配 - 提供屏幕适配设置页面,用户可自定义配置 - 应用启动时自动应用屏幕适配 技术实现: - 创建ScreenAdaptationService服务类 - 支持动态获取屏幕信息和显示器配置 - 提供智能适配和手动配置两种模式 - 集成到应用设置页面,提供友好的UI界面 配置选项: - 默认宽度/高度比例可调节 - 最小窗口尺寸限制 - 最大窗口尺寸比例 - 支持不同屏幕类型的预设配置 用户体验: - 应用启动时自动适配屏幕 - 设置页面提供实时预览 - 支持一键智能适配和手动微调 - 窗口居中显示,提升视觉体验 适配策略: - 小屏幕(<1366x768): 95%宽度, 90%高度 - 中等屏幕(1366-1920): 85%宽度, 85%高度 - 大屏幕(>=1920x1080): 75%宽度, 80%高度 - 超宽屏(21:9+): 70%宽度, 85%高度 解决了固定窗口尺寸在不同屏幕上显示不佳的问题
64 lines
1.5 KiB
JSON
64 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "MixVideo Desktop",
|
|
"version": "0.2.1",
|
|
"identifier": "com.mixvideo.desktop",
|
|
"build": {
|
|
"beforeDevCommand": "vite",
|
|
"devUrl": "http://localhost:5173",
|
|
"beforeBuildCommand": "pnpm build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "MixVideo Desktop",
|
|
"width": 1200,
|
|
"height": 900,
|
|
"minWidth": 1200,
|
|
"minHeight": 900,
|
|
"center": true,
|
|
"resizable": true,
|
|
"maximizable": true,
|
|
"minimizable": true,
|
|
"closable": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null,
|
|
"assetProtocol": {
|
|
"enable": true,
|
|
"scope": ["**"]
|
|
}
|
|
}
|
|
},
|
|
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
],
|
|
"publisher": "imeepos",
|
|
"copyright": "Copyright © 2024 imeepos. All rights reserved.",
|
|
"category": "Productivity",
|
|
"shortDescription": "MixVideo Desktop - 多媒体处理桌面应用",
|
|
"longDescription": "MixVideo Desktop 是一个基于 Tauri 构建的跨平台桌面应用,提供强大的多媒体处理功能。",
|
|
"externalBin": [],
|
|
"windows": {
|
|
"certificateThumbprint": null,
|
|
"digestAlgorithm": "sha256",
|
|
"timestampUrl": ""
|
|
},
|
|
"macOS": {
|
|
"frameworks": [],
|
|
"minimumSystemVersion": "10.13",
|
|
"exceptionDomain": ""
|
|
}
|
|
}
|
|
}
|