* 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
29 KiB
29 KiB