Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
fun PreferencesHintCard(title: String = "Title ".repeat(2), description: String? = "Description text ".repeat(3), style: TextStyle = MaterialTheme.typography.titleLarge, icon: ImageVector? = Icons.Outlined.Translate, isDarkTheme: Boolean = false, backgroundColor: Color = MaterialTheme.colorScheme.run { if (isDarkTheme) onPrimaryContainer else secondaryContainer }, contentColor: Color = MaterialTheme.colorScheme.run { if (isDarkTheme) surface else onSecondaryContainer }, onClick: () -> Unit = {})
Link copied to clipboard
Link copied to clipboard
fun PreferenceSingleChoiceItem(modifier: Modifier = Modifier, text: String, selected: Boolean, shape: Shape = 15.cornerRadius(), style: TextStyle = MaterialTheme.typography.titleLarge, colors: PreferenceChoiceColors = PreferenceChoiceColors(), contentPadding: PaddingValues = PaddingValues(horizontal = 8.dp, vertical = 18.dp), onClick: () -> Unit)
Link copied to clipboard
Link copied to clipboard
fun PreferenceSwitch(title: String, description: String? = null, icon: ImageVector? = null, enabled: Boolean = true, isChecked: Boolean = true, colors: SwitchColors = SwitchDefaults.colors(), checkedIcon: ImageVector = Icons.Outlined.Check, onClick: () -> Unit = {})
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun PreferenceSwitchWithContainer(title: String, style: TextStyle = MaterialTheme.typography.titleLarge, icon: ImageVector? = null, colors: SwitchWithContainerColors = SwitchWithContainerColors(), switchColors: SwitchColors = SwitchDefaults.colors(), isChecked: Boolean, onClick: () -> Unit)