From d5e5d54d35588a251400f67580df52992f4c5753 Mon Sep 17 00:00:00 2001 From: laoyang Date: Fri, 9 Oct 2026 19:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E9=A1=B5=E7=A9=BA=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E3=80=8C=EF=BC=8B=E3=80=8D=E5=8F=AF=E7=82=B9?= =?UTF-8?q?=E5=87=BB=EF=BC=9B=E7=89=88=E6=9C=AC=E5=8F=B7=E5=8D=87=E8=87=B3?= =?UTF-8?q?=200.0.5=EF=BC=88versionCode=20500=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AccountsPage.emptyState 的「+」改为可点击按钮,直接进入添加 CalDAV 账号页 (此前只是静态图标,点了没反应);提示文案同步更新 - 版本号 0.0.4 → 0.0.5 --- AppScope/app.json5 | 4 ++-- entry/src/main/ets/pages/AccountsPage.ets | 27 ++++++++++++++--------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/AppScope/app.json5 b/AppScope/app.json5 index d2374b7..63997c4 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -2,8 +2,8 @@ "app": { "bundleName": "synccalendar.yangyq.net", "vendor": "yangyq", - "versionCode": 400, - "versionName": "0.0.4", + "versionCode": 500, + "versionName": "0.0.5", "buildVersion": "1", "icon": "$media:layered_image", "label": "$string:app_name" diff --git a/entry/src/main/ets/pages/AccountsPage.ets b/entry/src/main/ets/pages/AccountsPage.ets index 770d4d3..d978e2e 100644 --- a/entry/src/main/ets/pages/AccountsPage.ets +++ b/entry/src/main/ets/pages/AccountsPage.ets @@ -284,20 +284,27 @@ struct AccountsPage { @Builder emptyState() { Column({ space: 12 }) { - Text('+') - .fontSize(30) - .fontColor($r('app.color.text_hint')) - .width(72) - .height(72) - .textAlign(TextAlign.Center) - .borderRadius(20) - .backgroundColor($r('app.color.card_bg')) - .border({ width: 1.5, color: $r('app.color.shadow_color') }) + // ⭐ 空状态的「+」本身可点击 → 直接进入添加账号页(此前只是个静态图标,点了没反应) + Button() { + Text('+') + .fontSize(34) + .fontColor($r('app.color.brand')) + .fontWeight(FontWeight.Medium) + } + .width(84) + .height(84) + .borderRadius(24) + .backgroundColor($r('app.color.card_bg')) + .border({ width: 1.5, color: $r('app.color.brand') }) + .shadow({ radius: 8, color: $r('app.color.shadow_color'), offsetX: 0, offsetY: 2 }) + .onClick(() => { + this.openAddPage(); + }) Text('还没有任何 CalDAV 账号') .fontSize(16) .fontWeight(FontWeight.Medium) .fontColor($r('app.color.text_primary')) - Text('点击右下角 + 添加 CalDAV 账号') + Text('点击上方 + 或右下角 + 添加 CalDAV 账号') .fontSize(13) .fontColor($r('app.color.text_secondary')) .textAlign(TextAlign.Center)