mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 11:22:12 +00:00
Update: BottomNavBar layout colors
This commit is contained in:
parent
045b70c1a6
commit
75111c8fbc
@ -59,9 +59,9 @@ fun BottomNavBar(page: Int = NAV_MAIN, navController: NavController) {
|
|||||||
|
|
||||||
NavigationBar(
|
NavigationBar(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
containerColor = MaterialTheme.colorScheme.surface,
|
containerColor = MaterialTheme.colorScheme.background,
|
||||||
tonalElevation = 0.dp,
|
tonalElevation = 0.dp,
|
||||||
contentColor = MaterialTheme.colorScheme.onSurface
|
contentColor = MaterialTheme.colorScheme.onBackground
|
||||||
) {
|
) {
|
||||||
val navBackStackEntry by navController.currentBackStackEntryAsState()
|
val navBackStackEntry by navController.currentBackStackEntryAsState()
|
||||||
val currentDestination = navBackStackEntry?.destination?.route
|
val currentDestination = navBackStackEntry?.destination?.route
|
||||||
@ -94,7 +94,7 @@ fun BottomNavBar(page: Int = NAV_MAIN, navController: NavController) {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
colors = NavigationBarItemDefaults.colors(
|
colors = NavigationBarItemDefaults.colors(
|
||||||
indicatorColor = MaterialTheme.colorScheme.surface,
|
indicatorColor = MaterialTheme.colorScheme.background,
|
||||||
selectedIconColor = MaterialTheme.colorScheme.primary,
|
selectedIconColor = MaterialTheme.colorScheme.primary,
|
||||||
selectedTextColor = MaterialTheme.colorScheme.primary,
|
selectedTextColor = MaterialTheme.colorScheme.primary,
|
||||||
unselectedIconColor = MaterialTheme.colorScheme.onSurface,
|
unselectedIconColor = MaterialTheme.colorScheme.onSurface,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user