Package-level declarations

Types

Link copied to clipboard
class PreferenceChoiceColors(val selectedRadioColor: Color = Color.DarkGray, val unselectedRadioColor: Color = Color.DarkGray, val containerColor: Color = Color.White, val contentColor: Color = Color.DarkGray)
Link copied to clipboard
class SwitchWithContainerColors(val iconEnabled: Color = artichoke, val iconDisabled: Color = cosmicLatte, val textEnabled: Color = artichoke, val textDisabled: Color = cosmicLatte, val backgroundEnabled: Color = cosmicLatte, val backgroundDisabled: Color = artichoke)

Functions

Link copied to clipboard
fun PreferenceItem(title: String, description: String? = null, icon: Any? = null, enabled: Boolean = true, onLongClickLabel: String? = null, onLongClick: () -> Unit? = null, onClickLabel: String? = null, onClick: () -> Unit = {})
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
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
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
fun PreferenceSwitchWithContainer(title: String, style: TextStyle = MaterialTheme.typography.titleLarge, icon: ImageVector? = null, colors: SwitchWithContainerColors = SwitchWithContainerColors(), switchColors: SwitchColors = SwitchDefaults.colors(), isChecked: Boolean, onClick: () -> Unit)