change_code/ICON_GUIDE.md

25 lines
804 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 图标设置说明
## 已完成配置
1. **应用程序窗口图标** - 已设置为 `resources/icons/转码工具.svg`
2. **资源文件** - 图标已添加到 `resources.qrc`
## Windows 可执行程序图标(可选)
如需设置 Windows 可执行文件的图标(任务栏、文件管理器显示的图标),需要:
### 方法 1使用在线工具转换
1.`resources/images/转码工具.png` 转换为 `.ico` 格式
2. 推荐尺寸:包含 16x16, 32x32, 48x48, 256x256 等多种尺寸
3. 保存为 `app.ico` 并放在项目根目录
4. `app.rc` 已配置引用 `app.ico`
### 方法 2使用 ImageMagick 转换
```bash
magick convert 转码工具.png -define icon:auto-resize=256,128,96,64,48,32,16 app.ico
```
### 重新编译
设置好图标后重新编译项目即可。