账号页空状态的「+」可点击;版本号升至 0.0.5(versionCode 500)
- AccountsPage.emptyState 的「+」改为可点击按钮,直接进入添加 CalDAV 账号页 (此前只是静态图标,点了没反应);提示文案同步更新 - 版本号 0.0.4 → 0.0.5
This commit is contained in:
+2
-2
@@ -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"
|
||||||
|
|||||||
@@ -284,20 +284,27 @@ struct AccountsPage {
|
|||||||
@Builder
|
@Builder
|
||||||
emptyState() {
|
emptyState() {
|
||||||
Column({ space: 12 }) {
|
Column({ space: 12 }) {
|
||||||
Text('+')
|
// ⭐ 空状态的「+」本身可点击 → 直接进入添加账号页(此前只是个静态图标,点了没反应)
|
||||||
.fontSize(30)
|
Button() {
|
||||||
.fontColor($r('app.color.text_hint'))
|
Text('+')
|
||||||
.width(72)
|
.fontSize(34)
|
||||||
.height(72)
|
.fontColor($r('app.color.brand'))
|
||||||
.textAlign(TextAlign.Center)
|
.fontWeight(FontWeight.Medium)
|
||||||
.borderRadius(20)
|
}
|
||||||
.backgroundColor($r('app.color.card_bg'))
|
.width(84)
|
||||||
.border({ width: 1.5, color: $r('app.color.shadow_color') })
|
.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 账号')
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user