自定义标题栏的样式?

小程序 文章 2021-02-04 10:21 429 0 全屏看文

AI助手支持GPT4.0

自定义标题栏的样式?Customize the style of the title bar?

自定义标题栏的样式?

想要的需求是首页标题栏是自定义的,背景颜色是白色,但是app.json里面设置的文字颜色是白色,因为其他页面标题栏的文字颜色都要是白色。

现在是想问首页这个自定义标题栏里面的文字(红框内的)怎么改成黑色的呢

Want the demand is the home title bar is custom, the background color is white, but app.json The text color set inside is white, because the text color of other page title bar is white. Now I want to ask how to change the text (in the red box) in the custom title bar of the home page to black

回答:

จุ๊บXavier:

全局配置·window

app.json"navigationBarTextStyle""black"
懒懒懒懒懒懒小兮:那我其他页面,都要改成白色,就很麻烦。。
จุ๊บXavier:页面配置·配置项
จุ๊บXavier:页面头部样式尽量统一,个别页面单独设置就好了
懒懒懒懒懒懒小兮:我也是想统一,唉,人家想要的
จุ๊บXavier:也就只支持黑色和白色,设置好全局特殊的页面单独配置一下就好了。
blah blah blah:

这个是手机的配置吧,小程序改不了的

-EOF-

AI助手支持GPT4.0