Skip to content

Commit

Permalink
Change font family of badge according to selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Horta committed Apr 5, 2024
1 parent 9e5f733 commit d74a6f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ fun ReadingPreferencesScreen(
actions = {
ExperimentalBadge(
contentColor = textColor,
fontFamily = fontFamily,
modifier = Modifier.padding(end = Margin.Large.value),
)
}
Expand Down Expand Up @@ -241,6 +242,7 @@ fun ReadingPreferencesScreen(
@Composable
private fun ExperimentalBadge(
contentColor: Color,
fontFamily: FontFamily,
modifier: Modifier = Modifier,
) {
Text(
Expand All @@ -249,7 +251,7 @@ private fun ExperimentalBadge(
style = TextStyle(
color = contentColor.copy(alpha = 0.6f),
fontWeight = FontWeight.Medium,
fontFamily = FontFamily.Monospace,
fontFamily = fontFamily,
),
)
}
Expand Down
2 changes: 1 addition & 1 deletion WordPress/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<string name="me">Me</string>
<string name="everyone">Everyone</string>

<string name="experimental_badge">[Experimental]</string>
<string name="experimental_badge">&lt;Experimental&gt;</string>

<!-- CAB -->
<string name="cab_selected">%d selected</string>
Expand Down

0 comments on commit d74a6f5

Please sign in to comment.