Remove edit button for built-in themes

This commit is contained in:
MM20 2023-08-22 22:09:37 +02:00
parent 70f658f9f3
commit 5afa905e4e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -64,16 +64,18 @@ fun ThemesSettingsScreen() {
expanded = showMenu,
onDismissRequest = { showMenu = false }
) {
DropdownMenuItem(
leadingIcon = {
Icon(Icons.Rounded.Edit, null)
},
text = { Text("Edit") },
onClick = {
navController?.navigate("settings/appearance/themes/${theme.id}")
showMenu = false
}
)
if (!theme.builtIn) {
DropdownMenuItem(
leadingIcon = {
Icon(Icons.Rounded.Edit, null)
},
text = { Text("Edit") },
onClick = {
navController?.navigate("settings/appearance/themes/${theme.id}")
showMenu = false
}
)
}
}
}
)