build: 发布 V1.0.7(修复应用图标缺陷)

- 图标生成脚本角度修正:圆环缺口从左侧改为正上方,与软件内 logo 一致
- 切割半径加深,消除缺口内残留的细青线
- 版本号 1.0.7+8;release/ 与 dist/ 同步新构建
This commit is contained in:
2026-10-08 14:13:37 +08:00
parent 8e17adda51
commit 76d1ce0d9a
13 changed files with 22 additions and 15 deletions
+8 -4
View File
@@ -49,10 +49,14 @@ def draw_ring(img, cx, cy, r_ring, ring_w, gap_deg, color, s):
md = ImageDraw.Draw(mask)
md.ellipse([cx - outer, cy - outer, cx + outer, cy + outer], fill=255)
md.ellipse([cx - inner, cy - inner, cx + inner, cy + inner], fill=0)
a0 = polar(cx, cy, outer + 8, -90 - gap_deg / 2)
a1 = polar(cx, cy, outer + 8, -90 + gap_deg / 2)
# Cut the gap wedge (centred on the top; polar() already offsets -90).
# The wedge must reach well past the ring so its chord clears the band,
# otherwise a thin sliver of ring is left spanning the gap.
cut = outer * 1.35
a0 = polar(cx, cy, cut, -gap_deg / 2)
a1 = polar(cx, cy, cut, gap_deg / 2)
md.polygon([(cx, cy), a0, a1], fill=0)
for deg in (-90 + gap_deg / 2, -90 - gap_deg / 2):
for deg in (-gap_deg / 2, gap_deg / 2):
p = polar(cx, cy, r_ring, deg)
md.ellipse([p[0] - ring_w / 2, p[1] - ring_w / 2,
p[0] + ring_w / 2, p[1] + ring_w / 2], fill=255)
@@ -76,7 +80,7 @@ def build(s):
mask = Image.new("L", (s, s), 0)
ImageDraw.Draw(mask).rounded_rectangle([0, 0, s - 1, s - 1], radius=int(0.27 * s), fill=255)
img.paste(body, (0, 0), mask)
ImageDraw.Draw(img).rounded_rectangle([0, 0, s - 1, s - 1], radius=int(0.27 * s), outline=EDGE, width=max(1, s // 200))
ImageDraw.Draw(img).rounded_rectangle([0, 0, s - 1, s - 1], radius=int(0.27 * s), outline=EDGE, width=max(1, round(0.018 * s)))
cx = cy = s / 2.0
r_ring = 0.293 * s