3***@qq.com
3***@qq.com
  • 发布:2022-12-02 14:58
  • 更新:2023-07-24 16:38
  • 阅读:203

导航栏设置titleNView,type为transparent,如何设置图标按钮颜色

分类:uni-app

现在默认显示是白色图标,滚动后显示黑色图标,如何让默认的图标也显示黑色,找了好久不知道怎么设置

{  
      "path": "pages/tabs/mine/mine",  
      "style": {  
        "navigationStyle": "custom",  
        "navigationBarTextStyle": "black",  
        "enablePullDownRefresh": true,  
        "navigationBarTitleText": "我",  
        "navigationBarBackgroundColor": "#33beaf",  
        "titlePenetrate": "YES",  
        "app-plus": {  
          "titleNView": {  
            "type": "transparent",  
            "backgroundImage": "static/images/bg/bg2.png",  
            "titleAlign": "center",  
            "backButton": {  
              "background": "rgba(0,0,0,0)"  
            },  
            "buttons": [  
              {  
                "type": "none",  
                "fontSrc": "/static/common/css/iconfont.ttf",  
                "text": "\ue605",  
                "background": "rgba(0, 0, 0, 0.0)",  
                "fontSize": "45rpx"  
              },  
              {  
                "type": "none",  
                "fontSrc": "/static/common/css/iconfont.ttf",  
                "text": "\ue612",  
                "background": "rgba(0, 0, 0, 0.0)",  
                "fontSize": "45rpx"  
              }  
            ]  
          }  
        }  
      }  
    },
2022-12-02 14:58 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

暂不支持设置

  • 3***@qq.com (作者)

    请问导航设置type为transparent的,默认显示的图标只能是白色吗?

    2022-12-02 15:59

  • BoredApe

    回复 3***@qq.com: 是的

    2022-12-02 16:02

  • 3***@qq.com (作者)

    回复 BoredApe: 谢谢

    2022-12-02 16:03

  • 3***@qq.com (作者)

    请问这个图标还是不能设置颜色吗?只能是白色吗?

    2023-11-08 20:13

  • BoredApe

    回复 3***@qq.com: 是的

    2023-11-09 08:38

vonfly

vonfly - 中端开发工程师

尽快支持一下吧!

Su先生

Su先生

type为transparent,点击事件不生效怎么解决

要回复问题请先登录注册