fun textStyles(headerCell: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Bold, color = Color(0xFF1C1C1C)), bodyCell: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), footer: TextStyle = TextStyle(fontSize = 12.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), loading: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), noData: TextStyle = TextStyle(fontSize = 16.sp, fontWeight = FontWeight.Normal, color = Color(0x991C1C1C)), pagination: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C))): DataTableTextStyles(source) Creates a DataTableTextStyles, remembered against its arguments.
Every parameter defaults to the plain style the table uses when given none, so overriding one leaves the rest alone. Text color lives on these styles rather than in DataTableColors:
textStyles = DataTableDefaults.textStyles(
bodyCell = MaterialTheme.typography.bodyMedium,
)