fix: 桌宠气泡 (#102)

* refactor: 精简desktop_pet_v2 — 内联_find_bubble_asset、删debug log、去重复RGBA检查

- 内联 _find_bubble_asset() 到 build_bubble_image (减少一层函数调用)
- 删除2处 /tmp/pet_toast_debug.log 写入
- 去除 Mac load_skin 中重复的 RGBA 转换检查
- 所有气泡核心逻辑(ImageOps.contain/非对称padding/alpha crop/tail扫描/定位公式)完整保留
- 785行 → 763行 (-22行)

* fix: 修复气泡文字碰边框问题,基于不透明区域计算文字padding

* feat: 添加自定义聊天气泡图片

* style: shift bubble text up 3px for better visual centering
This commit is contained in:
weijia
2026-04-18 10:48:30 +08:00
committed by GitHub
parent ec34b7e1c0
commit f49d69cf92
2 changed files with 24 additions and 35 deletions

BIN
聊天气泡.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB