启动改为:纯白启动窗 → 全屏 splash 启动图
- startWindowIcon 改为透明图 start_window_blank.png(108×108),系统启动窗仅剩白底 → 纯白屏 (顺带消除 startWindowIcon 超 144px 限制的构建警告)。 - SplashPage 恢复用全屏启动图 launch_image(ImageFit.Cover)+ navy 阶段文案 + 金色进度条。 - 删除不再引用的 startIcon.png。 时序:纯白启动窗 → 淡入全屏启动图(大 logo)+进度。系统窗无 logo,不存在两套资源比例不一致问题。 模拟器验证:首屏纯白,随后全屏启动图 + "准备游戏资源/正在下载更新NN%"。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fbad796ab3
commit
2702b619a7
@@ -7,10 +7,10 @@ import { RouteName, BridgeGameParams } from '../routes/AppRoutes';
|
||||
* 进入即跑 StartupOrchestrator(本地配置→远程配置→资源准备→app_data 注入),
|
||||
* 完成后 replace 进大厅容器;被 showmessage 阻断时弹公告。
|
||||
*
|
||||
* 🔴 与系统启动窗保持一致:systemWindow 用 module.json5 的 startWindowIcon($media:startIcon,
|
||||
* 1:1 方形)居中白底渲染;本页**复刻同一资源同一布局**——白底 + 居中同一个 startIcon,
|
||||
* 避免此前"系统窗(方形小图标) → 本页(横图全屏大 logo)"两套资源比例不一致导致的切换跳变。
|
||||
* 覆盖层文字用品牌 navy(白底可见),进度条金色,展示当前阶段中文文案。
|
||||
* 启动时序:系统启动窗用透明 startWindowIcon($media:start_window_blank) + 白底 →
|
||||
* **纯白屏**;随后本页淡入全屏启动图 launch_image(白底 + 金色 logo)。系统窗无 logo,
|
||||
* 故不存在"两套资源比例不一致"问题。覆盖层文字用品牌 navy(白底可见),进度条金色,
|
||||
* 展示当前阶段中文文案。
|
||||
*/
|
||||
@Component
|
||||
export struct SplashPage {
|
||||
@@ -75,10 +75,11 @@ export struct SplashPage {
|
||||
build() {
|
||||
NavDestination() {
|
||||
Stack() {
|
||||
// 与系统启动窗一致:白底 + 居中同一个 startIcon(Stack 默认居中,位置/尺寸对齐系统图标)
|
||||
Image($r('app.media.startIcon'))
|
||||
.width('38%')
|
||||
.objectFit(ImageFit.Contain)
|
||||
// 全屏启动图(白底 + 金色 logo)
|
||||
Image($r('app.media.launch_image'))
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
.objectFit(ImageFit.Cover)
|
||||
// 启动进度/公告叠加在底部(深色文字,白底可见)
|
||||
Column({ space: 14 }) {
|
||||
if (this.blocked === '') {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"description": "$string:EntryAbility_desc",
|
||||
"icon": "$media:layered_image",
|
||||
"label": "$string:EntryAbility_label",
|
||||
"startWindowIcon": "$media:startIcon",
|
||||
"startWindowIcon": "$media:start_window_blank",
|
||||
"startWindowBackground": "$color:start_window_background",
|
||||
"exported": true,
|
||||
"skills": [
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 77 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 175 B |
Reference in New Issue
Block a user