Seems TableStyle only supports specifying the cell padding - it would be great for table headers to be styled too, perhaps with a modifier or a background colour
data class TableStyle(
val cellPadding: PaddingValues,
val headerRowStyle: TableRowStyle,
val rowStyle: TableRowStyle, // perhaps?
)
data class TableRowStyle(
val cellStyle: TableCellStyle
)
data class TableCellStyle(
val backgroundColor: Color,
val textColor: Color
)
@Composable
fun m3TableCellStyle() = TableCellStyle(
MaterialTheme.colorScheme.surfaceContainer,
MaterialTheme.colorScheme.onSurface
)
Seems
TableStyleonly supports specifying the cell padding - it would be great for table headers to be styled too, perhaps with a modifier or a background colour