refactor: move chat bubble asset to frontends/ and rename to English
This commit is contained in:
@@ -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
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 493 KiB After Width: | Height: | Size: 493 KiB |
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user