Fix text paddings
This commit is contained in:
parent
afd793fc85
commit
4dae5cff6b
@ -45,7 +45,7 @@ fun Preference(
|
|||||||
Text(
|
Text(
|
||||||
text = summary,
|
text = summary,
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
modifier = Modifier.padding(top = 1.dp)
|
modifier = Modifier.padding(top = 2.dp)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,6 +71,7 @@ fun CalendarItem(
|
|||||||
Text(text = calendar.label, style = textStyle)
|
Text(text = calendar.label, style = textStyle)
|
||||||
AnimatedVisibility(!showDetails) {
|
AnimatedVisibility(!showDetails) {
|
||||||
Text(
|
Text(
|
||||||
|
modifier = Modifier.padding(top = 2.dp),
|
||||||
text = viewModel.getSummary(context),
|
text = viewModel.getSummary(context),
|
||||||
style = MaterialTheme.typography.bodySmall
|
style = MaterialTheme.typography.bodySmall
|
||||||
)
|
)
|
||||||
|
|||||||
@ -77,7 +77,7 @@ fun GridItem(modifier: Modifier = Modifier, item: Searchable) {
|
|||||||
Text(
|
Text(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(top = 4.dp),
|
.padding(top = 8.dp),
|
||||||
text = item.label,
|
text = item.label,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
style = MaterialTheme.typography.bodySmall,
|
style = MaterialTheme.typography.bodySmall,
|
||||||
|
|||||||
@ -81,6 +81,7 @@ fun ContactItem(
|
|||||||
AnimatedVisibility(!showDetails) {
|
AnimatedVisibility(!showDetails) {
|
||||||
Text(
|
Text(
|
||||||
contact.summary,
|
contact.summary,
|
||||||
|
modifier = Modifier.padding(top = 2.dp),
|
||||||
style = MaterialTheme.typography.bodySmall,
|
style = MaterialTheme.typography.bodySmall,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
|
|||||||
@ -31,8 +31,6 @@ fun DigitalClock1(
|
|||||||
Locale.getDefault()
|
Locale.getDefault()
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
modifier = Modifier
|
|
||||||
.offset(y = if (verticalLayout) 16.dp else 0.dp),
|
|
||||||
text = format.format(time),
|
text = format.format(time),
|
||||||
style = MaterialTheme.typography.displayLarge.copy(
|
style = MaterialTheme.typography.displayLarge.copy(
|
||||||
fontSize = if (verticalLayout) 100.sp else 48.sp,
|
fontSize = if (verticalLayout) 100.sp else 48.sp,
|
||||||
|
|||||||
@ -91,7 +91,7 @@ fun MusicWidget() {
|
|||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
text = artist ?: "",
|
text = artist ?: "",
|
||||||
modifier = Modifier.padding(vertical = 2.dp),
|
modifier = Modifier.padding(vertical = 4.dp),
|
||||||
style = MaterialTheme.typography.bodySmall,
|
style = MaterialTheme.typography.bodySmall,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
|
|||||||
@ -131,6 +131,7 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
|||||||
style = MaterialTheme.typography.titleMedium
|
style = MaterialTheme.typography.titleMedium
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
|
modifier = Modifier.padding(vertical = 8.dp),
|
||||||
text = convertTemperature(
|
text = convertTemperature(
|
||||||
imperialUnits = imperialUnits,
|
imperialUnits = imperialUnits,
|
||||||
temp = forecast.temperature
|
temp = forecast.temperature
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user