feat: change icon and display, add time
This commit is contained in:
@ -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':
|
||||
|
||||
Reference in New Issue
Block a user