v1.1.3: 重制应用图标 — 矢量 SVG 渲染

【图标焕新】
- SVG 矢量源文件:纯几何路径绘制,任意尺寸不失真
- 紫罗兰渐变圆角矩形底 + 几何 C 字形(不用字体,渲染一致)
- 金色 </> 角括号 + 下划线点缀(C/C++ 代码元素)
- Qt QSvgRenderer 渲染 16~256px PNG + ICO
- 带阴影和边框高光,精致专业
This commit is contained in:
虾哥
2026-04-28 18:59:32 +08:00
parent 975104700a
commit 6b582636c9
3 changed files with 58 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
<defs>
<!-- Background gradient -->
<linearGradient id="bgGrad" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#8E24AA"/>
<stop offset="100%" stop-color="#4A148C"/>
</linearGradient>
<!-- Inner glow -->
<radialGradient id="innerGlow" cx="0.5" cy="0.4" r="0.5">
<stop offset="0%" stop-color="#AB47BC" stop-opacity="0.5"/>
<stop offset="100%" stop-color="#4A148C" stop-opacity="0"/>
</radialGradient>
</defs>
<!-- Shadow -->
<rect x="8" y="10" width="240" height="240" rx="40" ry="40" fill="#00000033"/>
<!-- Background rounded rectangle -->
<rect x="4" y="4" width="248" height="248" rx="38" ry="38" fill="url(#bgGrad)"/>
<!-- Inner glow overlay -->
<rect x="4" y="4" width="248" height="248" rx="38" ry="38" fill="url(#innerGlow)"/>
<!-- Subtle border highlight -->
<rect x="6" y="6" width="244" height="244" rx="36" ry="36" fill="none" stroke="#CE93D8" stroke-width="1.5" stroke-opacity="0.4"/>
<!-- ===== C Letter (geometric path, no text dependency) ===== -->
<!-- Modern bold C: outer arc + inner arc as a path -->
<g transform="translate(128, 128)" fill="#FFFFFF">
<!-- Large C - drawn as a thick partial circle -->
<path d="
M -40,-60
A 70,70 0 0,1 50,-40
L 30,-15
A 45,45 0 0,0 -20,-40
L -20,40
A 45,45 0 0,0 30,15
L 50,40
A 70,70 0 0,1 -40,60
Z
" fill-rule="nonzero"/>
</g>
<!-- ===== Small angle brackets (code element) ===== -->
<g fill="#FFD54F" opacity="0.9">
<!-- < bracket top-left -->
<path d="M 62,108 L 78,98 L 78,106 L 68,118 L 78,130 L 78,138 Z"/>
<!-- > bracket top-right -->
<path d="M 194,108 L 178,98 L 178,106 L 188,118 L 178,130 L 178,138 Z"/>
</g>
<!-- Small dots (syntax element) -->
<circle cx="128" cy="195" r="4" fill="#FFD54F" opacity="0.7"/>
<!-- "C" underscore accent -->
<line x1="102" y1="185" x2="154" y2="185" stroke="#FFD54F" stroke-width="3" stroke-linecap="round" opacity="0.6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB