Skip to content

Commit

Permalink
Add uppercaseTitle param to PreferenceButton
Browse files Browse the repository at this point in the history
  • Loading branch information
yasanglass committed Mar 17, 2024
1 parent 3b0988e commit 9caffde
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ public fun PreferenceButton(
endIcon: ImageVector? = null,
description: String? = null,
enabled: Boolean = true,
uppercaseTitle: Boolean = false,
) {
Preference(
title = {
Text(
text = title,
text = if (uppercaseTitle) title.uppercase() else title,
color = ConcreteTheme.colors.content.major,
fontSize = 16.sp,
)
Expand Down

0 comments on commit 9caffde

Please sign in to comment.