账号页空状态的「+」可点击;版本号升至 0.0.5(versionCode 500)

- AccountsPage.emptyState 的「+」改为可点击按钮,直接进入添加 CalDAV 账号页
  (此前只是静态图标,点了没反应);提示文案同步更新
- 版本号 0.0.4 → 0.0.5
This commit is contained in:
2026-10-09 19:23:29 +08:00
parent c76c78b8a6
commit d5e5d54d35
2 changed files with 19 additions and 12 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
"app": { "app": {
"bundleName": "synccalendar.yangyq.net", "bundleName": "synccalendar.yangyq.net",
"vendor": "yangyq", "vendor": "yangyq",
"versionCode": 400, "versionCode": 500,
"versionName": "0.0.4", "versionName": "0.0.5",
"buildVersion": "1", "buildVersion": "1",
"icon": "$media:layered_image", "icon": "$media:layered_image",
"label": "$string:app_name" "label": "$string:app_name"
+15 -8
View File
@@ -284,20 +284,27 @@ struct AccountsPage {
@Builder @Builder
emptyState() { emptyState() {
Column({ space: 12 }) { Column({ space: 12 }) {
// ⭐ 空状态的「+」本身可点击 → 直接进入添加账号页(此前只是个静态图标,点了没反应)
Button() {
Text('+') Text('+')
.fontSize(30) .fontSize(34)
.fontColor($r('app.color.text_hint')) .fontColor($r('app.color.brand'))
.width(72) .fontWeight(FontWeight.Medium)
.height(72) }
.textAlign(TextAlign.Center) .width(84)
.borderRadius(20) .height(84)
.borderRadius(24)
.backgroundColor($r('app.color.card_bg')) .backgroundColor($r('app.color.card_bg'))
.border({ width: 1.5, color: $r('app.color.shadow_color') }) .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 账号') Text('还没有任何 CalDAV 账号')
.fontSize(16) .fontSize(16)
.fontWeight(FontWeight.Medium) .fontWeight(FontWeight.Medium)
.fontColor($r('app.color.text_primary')) .fontColor($r('app.color.text_primary'))
Text('点击右下角 + 添加 CalDAV 账号') Text('点击上方 + 或右下角 + 添加 CalDAV 账号')
.fontSize(13) .fontSize(13)
.fontColor($r('app.color.text_secondary')) .fontColor($r('app.color.text_secondary'))
.textAlign(TextAlign.Center) .textAlign(TextAlign.Center)