在iOS上,为了更改AppShell Tabbar图标的颜色,需要使用CSS样式覆盖默认CSS。可以使用以下代码示例:
/* Active tab icon color */
.app-shell-tabbar-ios .app-shell-tabbar-tab-active svg {
fill: #007aff; /* Change to desired color */
}
/* Inactive tab icon color */
.app-shell-tabbar-ios .app-shell-tabbar-tab svg {
fill: #8e8e93; /* Change to desired color */
}
将这些样式添加到iOS主题中即可。记住,这些样式只会影响iOS主题,因此不必将它们添加到其他主题中。