feat: [#28][#29] écran paramètres (thème, sync, notifs, comptes CalDAV) + thème dynamique Material You piloté par DataStore
This commit is contained in:
@@ -63,6 +63,7 @@ fun MainScreen(viewModel: DrawerViewModel = hiltViewModel()) {
|
||||
Route.Scheduled.path to "Planifié",
|
||||
Route.Search.path to "Recherche",
|
||||
Route.Filter.path to "Filtres",
|
||||
Route.Settings.path to "Paramètres",
|
||||
)
|
||||
val title = drawerTitles[currentRoute]
|
||||
?: projects.find { "project/${it.id}" == currentRoute }?.name
|
||||
@@ -145,8 +146,11 @@ fun MainScreen(viewModel: DrawerViewModel = hiltViewModel()) {
|
||||
NavigationDrawerItem(
|
||||
icon = { Icon(Icons.Outlined.Settings, null) },
|
||||
label = { Text("Paramètres") },
|
||||
selected = false,
|
||||
onClick = { scope.launch { drawerState.close() } },
|
||||
selected = currentRoute == Route.Settings.path,
|
||||
onClick = {
|
||||
navController.navigate(Route.Settings.path)
|
||||
scope.launch { drawerState.close() }
|
||||
},
|
||||
)
|
||||
Spacer(Modifier.height(8.dp))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user