Skip to content

Commit

Permalink
ui: unify font size
Browse files Browse the repository at this point in the history
  • Loading branch information
Millencolin committed Jan 28, 2025
1 parent 02e8842 commit e7d9bf5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/src/main/java/com/dd3boh/outertune/ui/component/Items.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.compose.ui.util.fastForEachIndexed
import androidx.media3.exoplayer.offline.Download
import androidx.media3.exoplayer.offline.Download.STATE_COMPLETED
Expand Down Expand Up @@ -210,7 +209,7 @@ inline fun ListItem(
) {
Text(
text = title,
fontSize = 14.sp,
style = MaterialTheme.typography.bodyMedium,
fontWeight = FontWeight.Bold,
maxLines = 1,
overflow = TextOverflow.Ellipsis
Expand Down Expand Up @@ -254,7 +253,7 @@ fun ListItem(
Text(
text = subtitle,
color = MaterialTheme.colorScheme.secondary,
fontSize = 12.sp,
style = MaterialTheme.typography.bodySmall,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
Expand Down Expand Up @@ -326,7 +325,7 @@ fun GridItem(
title = {
Text(
text = title,
style = MaterialTheme.typography.bodyLarge,
style = MaterialTheme.typography.bodyMedium,
fontWeight = FontWeight.Bold,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
Expand All @@ -341,7 +340,7 @@ fun GridItem(

Text(
text = subtitle,
style = MaterialTheme.typography.bodyMedium,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.secondary,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
Expand Down Expand Up @@ -1253,7 +1252,7 @@ fun YouTubeGridItem(
title = {
Text(
text = item.title,
style = MaterialTheme.typography.bodyLarge,
style = MaterialTheme.typography.bodyMedium,
fontWeight = FontWeight.Bold,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
Expand Down

0 comments on commit e7d9bf5

Please sign in to comment.