Skip to content

Commit

Permalink
Use font styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Dec 21, 2024
1 parent 03d65a0 commit a0e5ae4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fun AboutChannelSection(channelInfo: ParcelableChannelInfo) {
) {
if (description.isNotEmpty()) {
item {
Text(text = description)
Text(text = description, style = MaterialTheme.typography.bodyMedium)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
Expand All @@ -38,10 +37,10 @@ fun MetadataItem(@StringRes title: Int, value: AnnotatedString) {
modifier = Modifier.width(96.dp),
textAlign = TextAlign.End,
text = stringResource(title).uppercase(),
fontWeight = FontWeight.Bold
style = MaterialTheme.typography.titleSmall
)

Text(text = value)
Text(text = value, style = MaterialTheme.typography.bodyMedium)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
Expand All @@ -35,7 +34,7 @@ fun TagsSection(serviceId: Int, tags: List<String>) {
Text(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.metadata_tags).uppercase(),
fontWeight = FontWeight.Bold,
style = MaterialTheme.typography.titleMedium,
textAlign = TextAlign.Center
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.rememberNestedScrollInteropConnection
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.schabi.newpipe.R
Expand Down Expand Up @@ -83,7 +82,7 @@ fun StreamDescriptionSection(streamInfo: StreamInfo) {
val date = Localization.formatDate(LocalContext.current, it.offsetDateTime())
Text(
text = stringResource(R.string.upload_date_text, date),
fontWeight = FontWeight.Bold
style = MaterialTheme.typography.titleMedium
)
}

Expand Down Expand Up @@ -135,10 +134,10 @@ fun StreamDescriptionSection(streamInfo: StreamInfo) {

if (isSelectable) {
SelectionContainer {
Text(text = description)
Text(text = description, style = MaterialTheme.typography.bodyMedium)
}
} else {
Text(text = description)
Text(text = description, style = MaterialTheme.typography.bodyMedium)
}
}
}
Expand Down

0 comments on commit a0e5ae4

Please sign in to comment.