diff --git a/BUILD-NOTES.md b/BUILD-NOTES.md index bd56a8b..1150ddb 100644 --- a/BUILD-NOTES.md +++ b/BUILD-NOTES.md @@ -127,7 +127,7 @@ flutter pub get flutter build apk --release # 产物:build\app\outputs\flutter-apk\app-release.apk ``` -- 发布包归档:`release\sequence_diagram_android_v1.0.6_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。 +- 发布包归档:`release\sequence_diagram_android_v1.0.7_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。 - 上架应用商店时建议在 `android\app\build.gradle.kts` 配置正式签名后再构建 AAB: `flutter build appbundle --release`。 - 应用名「时序图设计」、包名 `cc.sincos.sequence_diagram`、launcher 图标由 diff --git a/README.md b/README.md index 2351790..2fca85e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ - **深色 / 浅色双主题**:右上角 ☀ / ☾ 一键切换,语义颜色不变,导出 SVG 与屏幕一致 - **导出 SVG**:矢量、分层、带语义 `id` / `data-*` 元数据,可直接进工艺卡与 MES -## 正式版 V1.0.6 +## 正式版 V1.0.7 **可运行的 Flutter Windows 桌面正式版**(源码在 `lib/`),设计人:呆头鹅。 @@ -97,7 +97,7 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模 - **正式签名**:release 用独立 keystore 签名(`android/key/release.jks`,见 `BUILD-NOTES.md`),更新安装无需卸载重装; - **构建**:JDK 17 + Android SDK 36(详见 `BUILD-NOTES.md`),Gradle 与 Maven 已配置国内镜像: ```bash - flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.6_release.apk + flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.7_release.apk ``` - **自测**:`test/tablet_layout_test.dart` 覆盖 1280×800、2560×1600、960×600、800×480、竖屏 800×1280、600×960 等 7 种分辨率的无溢出回归; - **demo 图**:`demo/tablet-*.png`(由 `test/tablet_screenshots_test.dart` 生成)。 @@ -113,6 +113,6 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模 - **软件**:时序图设计 · Sequence Diagram Studio - **设计人**:呆头鹅 -- **版本**:V1.0.6 +- **版本**:V1.0.7 - **版权**:Copyright © 2026 呆头鹅。保留所有权利。 - **架构文档**:[`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) · **使用帮助**:[`docs/HELP.md`](docs/HELP.md) diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index c1d8a50..103ec8b 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index a1cf436..719fa94 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 7ff0f50..02a1e90 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index 2635e53..583ea2d 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index b6a9c8d..a0be72e 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/demo/app-icon.png b/demo/app-icon.png index 4b6e3bf..18d861d 100644 Binary files a/demo/app-icon.png and b/demo/app-icon.png differ diff --git a/lib/ui/dialogs.dart b/lib/ui/dialogs.dart index 6eb79cd..d32677d 100644 --- a/lib/ui/dialogs.dart +++ b/lib/ui/dialogs.dart @@ -2124,7 +2124,7 @@ class HelpDialog extends StatelessWidget { Text('时序图设计 · Sequence Diagram Studio', style: TextStyle(color: t.text, fontSize: 15, fontWeight: FontWeight.w700)), const SizedBox(height: 4), - Text('V1.0.6(${android ? '安卓版' : 'Windows 版'})', + Text('V1.0.7(${android ? '安卓版' : 'Windows 版'})', style: TextStyle(color: t.dim, fontSize: 12)), ], ), diff --git a/pubspec.yaml b/pubspec.yaml index cc8f82b..fbc22b5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.6+7 +version: 1.0.7+8 environment: sdk: ^3.13.3 diff --git a/tools/gen-android-icons.py b/tools/gen-android-icons.py index c75b339..6849405 100644 --- a/tools/gen-android-icons.py +++ b/tools/gen-android-icons.py @@ -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 diff --git a/tools/gen-icon.py b/tools/gen-icon.py index fe3097b..f24cb0d 100644 --- a/tools/gen-icon.py +++ b/tools/gen-icon.py @@ -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 --- diff --git a/windows/runner/resources/app_icon.ico b/windows/runner/resources/app_icon.ico index 24d4d33..b5e26e2 100644 Binary files a/windows/runner/resources/app_icon.ico and b/windows/runner/resources/app_icon.ico differ