feat: change icon and display, add time

This commit is contained in:
0Xiao0
2026-06-16 13:34:05 +08:00
parent 7b5da81892
commit 4903fdd7a8
7 changed files with 194 additions and 13 deletions

View File

@ -715,9 +715,20 @@ def get_emoji_collection_path(default_emoji_collection, xiaozhi_fonts_path, proj
- PNG emoji collections from xiaozhi-fonts (e.g., emojis_32, twemoji_64)
- GIF emoji collections from xiaozhi-fonts (e.g., noto-emoji_128, noto-emoji_64)
- Otto GIF emoji collection (otto-gif)
- Custom project-relative or absolute directory paths
"""
if not default_emoji_collection:
return None
candidate_paths = []
if os.path.isabs(default_emoji_collection):
candidate_paths.append(default_emoji_collection)
elif project_root:
candidate_paths.append(os.path.join(project_root, default_emoji_collection))
for candidate_path in candidate_paths:
if os.path.isdir(candidate_path):
return candidate_path
# Special handling for otto-gif collection
if default_emoji_collection == 'otto-gif':