@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    接口 MiniProgramSetNavigationBarStyleOptions

    设置导航栏样式的配置。

    options 必须是对象,且 foregroundStyle 是必填字段。Runtime 只接受精确的 light 或 dark 字符串;缺少字段、传入 null、数组或其他值都会以 INVALID_PARAMS 拒绝。

    当前仅开放关闭按钮与状态栏图标/文字的前景明暗样式,不设置导航栏背景色。

    interface MiniProgramSetNavigationBarStyleOptions {
        foregroundStyle: MiniProgramNavigationBarForegroundStyle;
    }
    索引

    属性

    导航栏关闭按钮与状态栏图标/文字的前景样式。

    该字段必填且仅接受 light 或 dark。light 适合深色背景,dark 适合浅色 背景;它不读取网页背景,也不会自动跟随 prefers-color-scheme。