|
|
@ -82,22 +82,27 @@ fun PreferenceText( |
|
|
|
color = tintColor ?: enabled.toEnabledColor(), |
|
|
|
color = tintColor ?: enabled.toEnabledColor(), |
|
|
|
) |
|
|
|
) |
|
|
|
}, |
|
|
|
}, |
|
|
|
supportingContent = { |
|
|
|
supportingContent = if (subtitle != null) { |
|
|
|
if (subtitle != null) { |
|
|
|
{ |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
style = ElementTheme.typography.fontBodyMdRegular, |
|
|
|
style = ElementTheme.typography.fontBodyMdRegular, |
|
|
|
text = subtitle, |
|
|
|
text = subtitle, |
|
|
|
color = tintColor ?: enabled.toSecondaryEnabledColor(), |
|
|
|
color = tintColor ?: enabled.toSecondaryEnabledColor(), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
} else if (subtitleAnnotated != null) { |
|
|
|
} else if (subtitleAnnotated != null) { |
|
|
|
|
|
|
|
{ |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
style = ElementTheme.typography.fontBodyMdRegular, |
|
|
|
style = ElementTheme.typography.fontBodyMdRegular, |
|
|
|
text = subtitleAnnotated, |
|
|
|
text = subtitleAnnotated, |
|
|
|
color = tintColor ?: enabled.toSecondaryEnabledColor(), |
|
|
|
color = tintColor ?: enabled.toSecondaryEnabledColor(), |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
null |
|
|
|
}, |
|
|
|
}, |
|
|
|
trailingContent = ListItemContent.Custom { |
|
|
|
trailingContent = if (currentValue != null || loadingCurrentValue || showEndBadge) { |
|
|
|
|
|
|
|
ListItemContent.Custom { |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
verticalAlignment = Alignment.CenterVertically, |
|
|
|
verticalAlignment = Alignment.CenterVertically, |
|
|
|
) { |
|
|
|
) { |
|
|
@ -123,7 +128,10 @@ fun PreferenceText( |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
null |
|
|
|
|
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|