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:
ShirkNeko
2025-06-15 15:52:43 +08:00
parent 2ff122e235
commit e95a469bdb

View File

@@ -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
)
)
} }
} }
} }