1. Added "universal" tone type to support icons that don't differentiate
between light and dark themes.
2. When "universal" is selected, the image is stored in the "light"
directory, and a symbolic link is created in the "dark" directory,
pointing to the "light" directory's image.
3. The symlink uses a relative path to comply with the DCI
specification.
4. Updated node defaults to use universal tone.
5. Modified DCI reader and writer to handle universal tone symlinks.
6. Modified `format_dci_path` to support universal tone type and keep
naming consistent.
7. Added helper functions for creating and resolving symlinks.
8. This change addresses the need to support generic application icons
that are not specifically designed for light or dark modes, allowing for
a more streamlined workflow when exporting icons to the DCI format.
Log: Added support for a new universal tone type for icons.
Influence:
1. Test creating icons with the universal tone type.
2. Verify that symbolic links are created correctly in the "dark"
directory.
3. Confirm that the application correctly displays the icon in both
light and dark themes.
4. Test reading DCI files with universal tone icons.
5. Ensure backward compatibility with existing light and dark tone
types.
6. Check file size and disk space usage when using universal tone,
considering the overhead of symlinks.
7. Verify relative paths in symlinks are correct according to DCI spec.
8. Test the loading speed of DCI files with many symlinks.
feat: 支持通用色调类型
1. 添加了“通用”色调类型,以支持不区分浅色和深色主题的图标。
2. 选择“通用”时,图像存储在“浅色”目录中,并在“深色”目录中创建一个指向“浅
色”目录中图像的符号链接。
3. 符号链接使用相对路径,以符合 DCI 规范。
4. 更新了节点默认值以使用通用色调。
5. 修改了 DCI 读取器和写入器以处理通用色调符号链接。
6. 修改了`format_dci_path` 以支持通用色调类型并保持命名一致。
7. 添加了用于创建和解析符号链接的辅助函数。
8. 此更改解决了支持非专门为浅色或深色模式设计的通用应用程序图标的需求,
从而可以在将图标导出为 DCI 格式时简化工作流程。
Log: 添加了对图标的新通用色调类型的支持。
Influence:
1. 测试创建具有通用色调类型的图标。
2. 验证符号链接是否在“深色”目录中正确创建。
3. 确认应用程序在浅色和深色主题中均正确显示该图标。
4. 测试读取带有通用色调图标的 DCI 文件。
5. 确保与现有的浅色和深色调类型的向后兼容性。
6. 检查使用通用色调时的文件大小和磁盘空间使用情况,考虑到符号链接的
开销。
7. 验证符号链接中的相对路径是否符合 DCI 规范。
8. 测试具有大量符号链接的 DCI 文件的加载速度。