如何在nativescript-vue中为ActionBar设置默认背景色?

问题描述 投票:0回答:1

我可以像下面那样设置背景颜色

<ActionBar backgroundColor="#164d9b" title="Setting"/>

但是我不想为每个页面中的每个ActionBar设置backgroundColor,如果我没有指定背景色,它将为绿色。那么,在哪里可以一次设置ActionBar的背景颜色?

而且我还注意到,每次我点击ActionBar上的后退按钮时,无论我为ActionBar设置什么背景色,它都会重置为原始的绿色。有什么办法吗?请帮助!

enter image description here

enter image description here

nativescript nativescript-vue
1个回答
0
投票

尝试通过阅读设置应用程序的主题https://docs.nativescript.org/ui/theme

© www.soinside.com 2019 - 2024. All rights reserved.