dtkgui/tools
zhangkun 187be9a947 feat: improve icon theme generation with scalable support
1. Add SCALABLE_SIZE constant for scalable icon directories
2. Change foundSize return type from uint to int to support scalable
detection
3. Modify writeScaledImage to accept baseSize parameter instead of
parsing from directory
4. Move directory parsing logic to writeImage function for better
organization
5. Add scalable directory detection in size parsing logic
6. Use QImageReader's scaledSize for better image scaling quality
7. Fix error handling to continue processing instead of exiting on first
error

Log: Improved icon theme generation with better scalable icon support

Influence:
1. Test with icon directories containing scalable icons
2. Verify different scale factors work correctly
3. Test error handling when encountering invalid image files
4. Verify image quality at various scales
5. Test with both fixed-size and scalable icon directories

feat: 改进图标主题生成,支持可缩放图标

1. 添加 SCALABLE_SIZE 常量用于可缩放图标目录
2. 将 foundSize 返回类型从 uint 改为 int 以支持可缩放检测
3. 修改 writeScaledImage 函数,接受 baseSize 参数而非从目录解析
4. 将目录解析逻辑移至 writeImage 函数以获得更好的代码组织
5. 在尺寸解析逻辑中添加可缩放目录检测
6. 使用 QImageReader 的 scaledSize 获得更好的图像缩放质量
7. 修复错误处理,在遇到错误时继续处理而非立即退出

Log: 改进图标主题生成,提供更好的可缩放图标支持

Influence:
1. 测试包含可缩放图标的目录
2. 验证不同缩放因子是否正确工作
3. 测试遇到无效图像文件时的错误处理
4. 验证各种缩放比例下的图像质量
5. 测试固定尺寸和可缩放图标目录
2025-10-23 08:41:20 +00:00
..
dci-icon-theme feat: improve icon theme generation with scalable support 2025-10-23 08:41:20 +00:00
dci-iconfinder refactor: move icon finder functionality to separate tool 2025-07-23 04:16:59 +00:00
dci-image-converter chore: Adapt Qt6 && Dtk6 compilation 2023-06-19 13:13:09 +08:00
dde-kwin-debug chore: Adapt Qt6 && Dtk6 compilation 2023-06-19 13:13:09 +08:00
deepin-gui-settings chore: Adapt Qt6 && Dtk6 compilation 2023-06-19 13:13:09 +08:00
image-handler chore: Adapt Qt6 && Dtk6 compilation 2023-06-19 13:13:09 +08:00
CMakeLists.txt refactor: move icon finder functionality to separate tool 2025-07-23 04:16:59 +00:00