refactor: move chat bubble asset to frontends/ and rename to English

This commit is contained in:
Liang Jiaqing
2026-04-18 11:13:38 +08:00
parent 5d0d4b7d27
commit 3c2d22b948
3 changed files with 3 additions and 3 deletions

View File

@@ -19,4 +19,4 @@ L4: L4_raw_sessions/
5. 进程: 禁无条件杀python(杀自己), 精确PID, 禁os.kill判活 5. 进程: 禁无条件杀python(杀自己), 精确PID, 禁os.kill判活
6. 窗口: GUI状态优先win32gui枚举标题 6. 窗口: GUI状态优先win32gui枚举标题
7. web JS: 输入用原生setter+事件链, 点击前检disabled, 注意引号转义; scan空/不全先稍等再scan, 禁首扫定论 7. web JS: 输入用原生setter+事件链, 点击前检disabled, 注意引号转义; scan空/不全先稍等再scan, 禁首扫定论
8. SOP: 读SOP禁凭印象,有utils必用 | 复杂长程/用户提及规划→读plan_sop 8. SOP: 读SOP禁凭印象,有utils必用 | 复杂长程/用户提及规划模式→读plan_sop

View File

Before

Width:  |  Height:  |  Size: 493 KiB

After

Width:  |  Height:  |  Size: 493 KiB

View File

@@ -137,8 +137,8 @@ def _wrap_text_for_width(draw, text, font, max_width):
def build_bubble_image(message, max_width=220): def build_bubble_image(message, max_width=220):
"""Build a PIL image for the toast bubble using the user asset when available.""" """Build a PIL image for the toast bubble using the user asset when available."""
message = (message or '').strip() message = (message or '').strip()
bubble_path = next((p for p in [os.path.join(PROJECT_DIR, '聊天气泡.png'), bubble_path = next((p for p in [os.path.join(SCRIPT_DIR, 'chat_bubble.png'),
os.path.join(PROJECT_DIR, 'bubble.png')] os.path.join(SCRIPT_DIR, 'bubble.png')]
if os.path.exists(p)), None) if os.path.exists(p)), None)
if bubble_path: if bubble_path: