Use font styling
This commit is contained in:
parent
03d65a0468
commit
a0e5ae4f3c
|
@ -42,7 +42,7 @@ fun AboutChannelSection(channelInfo: ParcelableChannelInfo) {
|
|||
) {
|
||||
if (description.isNotEmpty()) {
|
||||
item {
|
||||
Text(text = description)
|
||||
Text(text = description, style = MaterialTheme.typography.bodyMedium)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue