Remove edit button for built-in themes
This commit is contained in:
parent
70f658f9f3
commit
5afa905e4e
@ -64,16 +64,18 @@ fun ThemesSettingsScreen() {
|
|||||||
expanded = showMenu,
|
expanded = showMenu,
|
||||||
onDismissRequest = { showMenu = false }
|
onDismissRequest = { showMenu = false }
|
||||||
) {
|
) {
|
||||||
DropdownMenuItem(
|
if (!theme.builtIn) {
|
||||||
leadingIcon = {
|
DropdownMenuItem(
|
||||||
Icon(Icons.Rounded.Edit, null)
|
leadingIcon = {
|
||||||
},
|
Icon(Icons.Rounded.Edit, null)
|
||||||
text = { Text("Edit") },
|
},
|
||||||
onClick = {
|
text = { Text("Edit") },
|
||||||
navController?.navigate("settings/appearance/themes/${theme.id}")
|
onClick = {
|
||||||
showMenu = false
|
navController?.navigate("settings/appearance/themes/${theme.id}")
|
||||||
}
|
showMenu = false
|
||||||
)
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user