manager: Add a default tab item to the AppItem
- Maybe make the spacing consistent? I'm not sure. Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
This commit is contained in:
@@ -785,6 +785,7 @@ private fun AppItem(
|
|||||||
supportingContent = {
|
supportingContent = {
|
||||||
Column {
|
Column {
|
||||||
Text(app.packageName)
|
Text(app.packageName)
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(4.dp))
|
Spacer(modifier = Modifier.height(4.dp))
|
||||||
|
|
||||||
FlowRow(
|
FlowRow(
|
||||||
@@ -813,6 +814,13 @@ private fun AppItem(
|
|||||||
contentColor = MaterialTheme.colorScheme.onTertiaryContainer,
|
contentColor = MaterialTheme.colorScheme.onTertiaryContainer,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
} else if (!app.allowSu) {
|
||||||
|
LabelItem(
|
||||||
|
text = "DEFAULT",
|
||||||
|
style = LabelItemDefaults.style.copy(
|
||||||
|
containerColor = Color.Gray
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user