Skip to content

装了 Google Play 商店的实例:卡片上显示商店图标,list 的备注里标出 - #223

Merged
qiyinxi merged 1 commit into
ModAVD:mainfrom
qiyinxi:feat/playstore-icon
Nov 29, 2026
Merged

qiyinxi merged 1 commit into
ModAVD:mainfrom
qiyinxi:feat/playstore-icon

Conversation

@qiyinxi

@qiyinxi qiyinxi commented Nov 29, 2026

Copy link
Copy Markdown
Member

装了 Google Play 商店的实例,在管理器卡片和 modavd list 里标出来。只是显示,装、卸商店的流程不变。

改了什么

  • 管理器卡片:InstanceInfo.play_store 为 true 的实例,名字后面(「代理」标记之后)多一个购物袋线条图标。
    • 通用的购物袋图形,照现有图标的画法(24 网格、线宽由 CSS 定),不用 Google Play 的标志;颜色用 --sunken / --text-2,深浅色跟主题走。
    • 不是按钮:role="img",aria-label 和 title 都是「已装 Google Play 商店」(英文 Google Play Store installed),悬停有提示,读屏能读到。
    • 卡片视图和列表视图都显示;名字长时名字省略,图标宽度不变,不挤到状态标签。
    • 只装了一部分(play_store_partial)的不标,和菜单里「补全」「移除」都给的状态一致。
  • modavd list:「备注」一栏多一项「已装 Google Play 商店」,放在已有备注(诊断模式、正在开机、未初始化、软件渲染)后面,用「,」隔开。英文输出是 Google Play Store installed。--json 不变(play_store 字段原来就有)。
编号  名称   状态    adb 地址         内存  核数  帧率  备注
0     星铁   运行中  127.0.0.1:20001  6 GB  6     60    已装 Google Play 商店
1     emu-1  开机中  127.0.0.1:20011  6 GB  6     60    正在开机,未初始化,软件渲染,已装 Google Play 商店
2     emu-2  已关机  127.0.0.1:20021  6 GB  6     60
  • 假数据页面 ?mock=many 里星穹铁道、日常备用两台装了商店(?mock=normal 原来就有一台)。
  • README(中英)管理器一节、internal/ui/API.md(中英)InstanceInfo.play_store 一条跟着补了一句;changelog.d/298-playstore-icon.feat.md。

怎么验证的

  • go test -count=1 ./internal/cli/... ./internal/i18n/... ./internal/ui/... 通过;新加 TestFormatListPlayStore:单独一项、和别的备注共存、没装、只装一部分、英文输出、JSON 里没有这条备注。
  • node --experimental-vm-modules --test scripts/test_*.mjs 十个文件全过(CI 跑的 test_display_tap、test_disk_info、test_compact_format、test_card_cfg、test_create_cancel 也按 CI 的命令跑过)。test_create_cancel.mjs 的卡片替身补了 smark,并让 makeCard 能在替身里建整张卡;新测试查标记的位置、role、aria-label、title 和随更新显示 / 隐藏(去掉 updateCard 里那一行时这条测试会失败)。
  • gofmt -l . 无输出;go vet ./...(windows、darwin、linux)通过;TestCatalog 通过;scripts/repo_checks.py(以 upstream/main 为基)通过。
  • 假数据页面(?mock=many,只服务静态文件的本机服务)看过:浅色 / 深色、中文 / 英文、宽窗口和两列的窄卡片、列表视图,以及临时把名字改得很长时图标不被挤掉。

没验证的

  • 没在真实的管理器窗口(ModAVD.exe)和真实实例上看过,只看了假数据页面。
  • 没有用真实的读屏软件听过,只核对了可访问名称。

Refs ModAVD/ModAVD#298

- 管理器:InstanceInfo.play_store 为 true 的实例,卡片名字后面(按应用走代理的标记之后)多一个购物袋线条图标
  (通用图形,不用 Google Play 的标志),颜色跟主题走;悬停和读屏都是「已装 Google Play 商店」,英文
  Google Play Store installed。只装了一部分(play_store_partial)的不标。卡片视图和列表视图都显示,
  名字长时名字省略,图标不挤掉。
- 命令行:modavd list 的「备注」一栏多一项「已装 Google Play 商店」,放在其它备注后面,用「,」隔开;
  --json 不变。
- 假数据页面 ?mock=many 里星穹铁道、日常备用两台装了商店。
- 测试:list 的格式化(单独、和别的备注共存、没装、只装一部分、英文、JSON 不带备注),卡片的标记
  (makeCard 建出来的位置、role、aria-label、title,更新后跟着显示或隐藏)。

Refs ModAVD/ModAVD#298
@qiyinxi qiyinxi added the enhancement New feature or request / 新功能或改进 label Nov 29, 2026
@qiyinxi
qiyinxi added this pull request to the merge queue Nov 29, 2026
Merged via the queue into ModAVD:main with commit 5f88ad2 Nov 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request / 新功能或改进

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant