ke: 鸿蒙 UI 整改:emoji→AmIcon 图标、宽屏侧栏、Md 第三方库、通知可配置项
- common/Icons.ets(生成器产出):43 枚与 WebUI icons.tsx 同几何的 Path 图标 - NavItems.ts:icon(emoji) → iconKey,与 WebUI 导航同图标 - 全页面 emoji 清除(空态改单行灰字,按钮/头像/刷新等换 AmIcon) - MailDetailPage 接入 @luvi/lv-markdown-in(第三方,替代手写解析器) - WideSidebar + MainPage isWide(≥768vp):宽屏侧栏 60vp 图标轨、藏底部条、onAreaChange 断点 - 通知=可配置项(默认关):PushService.isEnabled/setEnabled + reportToken 最前 gate (关=不取token/不弹权限/不打网关)+ SettingsPage Toggle + 服务端通道状态提示 - EntryAbility.onCreate 解析 want:冷启点通知也能路由(原来只有 onNewWant) - 判据:harmony-widescreen(4) + harmony-push-optin(4) 新增;harmony-nav 同步 iconKey/条件 padding
This commit is contained in:
@ -7,6 +7,7 @@ import { Theme } from '../common/Theme';
|
||||
import { MailApi } from '../api/MailApi';
|
||||
import { MailSummary, Me } from '../model/Models';
|
||||
import { router } from '@kit.ArkUI';
|
||||
import { AmIcon } from '../common/Icons';
|
||||
|
||||
@Entry
|
||||
@Component
|
||||
@ -97,7 +98,7 @@ struct InboxPage {
|
||||
.justifyContent(FlexAlign.Center)
|
||||
} else if (this.mails.length === 0) {
|
||||
Column() {
|
||||
Text('📭 收件箱为空').fontSize(16).fontColor(Theme.textSubtle)
|
||||
Text('收件箱为空').fontSize(16).fontColor(Theme.textSubtle)
|
||||
}
|
||||
.width('100%').height('80%')
|
||||
.justifyContent(FlexAlign.Center)
|
||||
@ -126,7 +127,7 @@ struct InboxPage {
|
||||
Column() {
|
||||
Row() {
|
||||
Column() {
|
||||
Text('📬').fontSize(20)
|
||||
AmIcon({ iconName: 'inbox', iconSize: 20, iconColor: Theme.accent })
|
||||
Text('收件箱').fontSize(11).fontColor(Theme.accent)
|
||||
}
|
||||
.layoutWeight(1).height('100%')
|
||||
@ -134,7 +135,7 @@ struct InboxPage {
|
||||
.backgroundColor(Theme.accentSoft)
|
||||
|
||||
Column() {
|
||||
Text('💬').fontSize(20)
|
||||
AmIcon({ iconName: 'chatBubble', iconSize: 20, iconColor: Theme.textMuted })
|
||||
Text('会话').fontSize(11).fontColor(Theme.textMuted)
|
||||
}
|
||||
.layoutWeight(1).height('100%')
|
||||
@ -144,7 +145,7 @@ struct InboxPage {
|
||||
})
|
||||
|
||||
Column() {
|
||||
Text('👤').fontSize(20)
|
||||
AmIcon({ iconName: 'contacts', iconSize: 20, iconColor: Theme.textMuted })
|
||||
Text('联系人').fontSize(11).fontColor(Theme.textMuted)
|
||||
}
|
||||
.layoutWeight(1).height('100%')
|
||||
@ -193,7 +194,7 @@ struct InboxPage {
|
||||
|
||||
// 附件图标
|
||||
if (mail.has_attachments) {
|
||||
Text('📎').fontSize(14).margin({ right: 8 })
|
||||
AmIcon({ iconName: 'paperclip', iconSize: 14, iconColor: Theme.textMuted }).margin({ right: 8 })
|
||||
}
|
||||
|
||||
// 权限档位徽标
|
||||
|
||||
Reference in New Issue
Block a user