Update: BottomNavBar layout colors

This commit is contained in:
machiav3lli 2022-10-08 02:50:22 +02:00
parent 045b70c1a6
commit 75111c8fbc

View File

@ -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,