Skip to content

Commit

Permalink
Fix Previews with explicit theme usage in components
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahkeen committed Jul 16, 2024
1 parent 733cb7f commit 166a944
Showing 1 changed file with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,36 @@ fun StoryRow(
) {
Text(
text = item.title,
color = MaterialTheme.colorScheme.onSurface,
style = MaterialTheme.typography.titleSmall
)
Row(horizontalArrangement = Arrangement.spacedBy(4.dp)) {
Text(text = "${item.score}", style = MaterialTheme.typography.labelSmall)
Text(text = "", style = MaterialTheme.typography.labelSmall)
Text(
text = "${item.score}",
color = MaterialTheme.colorScheme.onSurface,
style = MaterialTheme.typography.labelSmall
)
Text(
text = "",
color = MaterialTheme.colorScheme.onSurface,
style = MaterialTheme.typography.labelSmall
)
Text(
text = item.author,
color = HackerOrange,
style = MaterialTheme.typography.labelSmall,
fontWeight = FontWeight.Medium
)
Text(text = "", style = MaterialTheme.typography.labelSmall)
Text(text = item.timeLabel, style = MaterialTheme.typography.labelSmall)
Text(
text = "",
color = MaterialTheme.colorScheme.onSurface,
style = MaterialTheme.typography.labelSmall
)
Text(
text = item.timeLabel,
color = MaterialTheme.colorScheme.onSurface,
style = MaterialTheme.typography.labelSmall
)
}
}

Expand All @@ -295,6 +312,7 @@ fun StoryRow(
)
Text(
text = "${item.commentCount}",
color = MaterialTheme.colorScheme.onSurface,
style = MaterialTheme.typography.labelSmall,
fontWeight = FontWeight.Medium
)
Expand Down

0 comments on commit 166a944

Please sign in to comment.