For AI agents: the complete documentation index is available at https://payhon.github.io/AppKernia/llms.txt, the full documentation bundle is available at https://payhon.github.io/AppKernia/llms-full.txt, and this page is available as Markdown at https://payhon.github.io/AppKernia/mobile-components/icons-theme.md.

图标、返回与主题

ak-icon

<ak-icon name="security" tone="primary" />
属性类型默认值说明
nameStringchevron-right受控图标名
toneStringprimarymuted 对 home/bell/profile 使用弱化图标
filledBooleanfalse对 home/bell/profile 使用 filled 版本

当前支持:backbookmarksearchbellhomeprofilesecuritysettingsdevicehelpcheckchevron-right。未知名称回退到 chevron-right,不会加载任意远程图标。

ak-back-button

<ak-back-button :delta="1" fallback-url="/pages/home/index" />
属性类型默认值
deltaNumber1
fallbackUrlString/pages/home/index

页面栈足够时调用 uni.navigateBack;否则通过 uni.reLaunch 进入 fallback。它的触控尺寸为 44×44。

ak-theme-root

<ak-theme-root>
  <view class="page">…</view>
</ak-theme-root>

组件读取 themeState.isDark,切换 ak-theme-light / ak-theme-dark,并统一安全区、页面背景和高度。业务页面继续使用语义 CSS 变量,不直接写明暗模式颜色。