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 -5
View File
@@ -70,12 +70,15 @@ def draw_ring(img, r_ring, ring_w, gap_deg, color):
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)
# Cut the gap wedge (centred on the top, i.e. -90 deg).
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).
# Reach well past the ring so the 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)
# Round caps at both arc ends.
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)
@@ -104,7 +107,7 @@ def build_master(simplified=False):
[INSET, INSET, S - 1 - INSET, S - 1 - INSET],
radius=int(0.27 * TILE),
outline=EDGE,
width=5,
width=max(1, round(0.018 * TILE)),
)
# --- mark ---