feat(ui): Refactor node position details into separate section (#3382)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-10-07 19:50:53 -05:00 committed by GitHub
parent b2ff4483c8
commit 8baf8714d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 1967 additions and 1193 deletions

View file

@ -122,6 +122,28 @@ fun SettingsItemDetail(
)
}
/** A settings detail item with composable content for the detail. */
@Composable
fun SettingsItemDetail(
text: String,
textColor: Color = LocalContentColor.current,
icon: ImageVector? = null,
iconTint: Color = LocalContentColor.current,
enabled: Boolean = true,
onClick: (() -> Unit)? = null,
supportingContent: @Composable () -> Unit,
) {
SettingsListItem(
text = text,
textColor = textColor,
enabled = enabled,
onClick = onClick,
leadingContent = { icon.Icon(iconTint) },
supportingContent = supportingContent,
trailingContent = {},
)
}
/**
* Base composable for all settings screen list items. It handles the Material3 [ListItem] structure and the conditional
* click wrapper.