This commit is contained in:
Fredrik Burmester
2024-10-27 14:14:27 +01:00
parent f5857e2162
commit 06e657dc4d
3 changed files with 15 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ function withNativeTabBarStyles(config) {
// Add custom bottom navigation style
styleContents.resources.style.push({
$: {
name: "Widget.Material3.BottomNavigationView",
name: "CustomBottomNavigationView",
parent: "@style/Widget.Material3.BottomNavigationView",
},
item: [
@@ -72,6 +72,18 @@ function withNativeTabBarStyles(config) {
],
});
const bottomNavigationStyleItem = appTheme.item.find(
(item) => item.$.name === "bottomNavigationStyle"
);
if (bottomNavigationStyleItem) {
bottomNavigationStyleItem._ = "@style/CustomBottomNavigationView";
} else {
appTheme.item.push({
$: { name: "bottomNavigationStyle" },
_: "@style/CustomBottomNavigationView",
});
}
return {
...config,
modResults: styleContents,