Use shapes from theme everywhere
This commit is contained in:
parent
6d9dc5758d
commit
b60a751cf3
@ -37,7 +37,7 @@ fun WeatherLocationSearchDialog(
|
||||
Surface(
|
||||
tonalElevation = 16.dp,
|
||||
shadowElevation = 16.dp,
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(vertical = 16.dp),
|
||||
|
||||
@ -158,7 +158,7 @@ fun BottomSheetDialog(
|
||||
.offset { IntOffset(0, swipeState.offset.value.roundToInt()) }
|
||||
.fillMaxWidth()
|
||||
.weight(1f, false),
|
||||
shape = MaterialTheme.shapes.large.copy(
|
||||
shape = MaterialTheme.shapes.extraLarge.copy(
|
||||
bottomStart = CornerSize(0),
|
||||
bottomEnd = CornerSize(0),
|
||||
),
|
||||
|
||||
@ -24,7 +24,7 @@ fun Chip(
|
||||
content: @Composable RowScope.() -> Unit
|
||||
) {
|
||||
Surface(
|
||||
shape = RoundedCornerShape(8.dp),
|
||||
shape = MaterialTheme.shapes.small,
|
||||
modifier = modifier,
|
||||
color = Color.Transparent,
|
||||
border = BorderStroke(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.17f)),
|
||||
|
||||
@ -55,7 +55,7 @@ fun InnerCard(
|
||||
if (it) 1f else 0f
|
||||
}
|
||||
|
||||
val shape = RoundedCornerShape(LocalCardStyle.current.radius.dp)
|
||||
val shape = MaterialTheme.shapes.small
|
||||
|
||||
val bgColor = MaterialTheme.colorScheme.surfaceColorAtElevation(absoluteTonalElevation + elevation)
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ fun <T> ListPreference(
|
||||
Surface(
|
||||
tonalElevation = 16.dp,
|
||||
shadowElevation = 16.dp,
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(vertical = 16.dp),
|
||||
|
||||
@ -306,7 +306,7 @@ fun SearchBar(
|
||||
) {
|
||||
items(websearches) {
|
||||
Surface(
|
||||
shape = RoundedCornerShape(4.dp),
|
||||
shape = MaterialTheme.shapes.extraSmall,
|
||||
modifier = Modifier.padding(horizontal = 8.dp)
|
||||
) {
|
||||
Row(
|
||||
|
||||
@ -48,7 +48,7 @@ fun UnitConverterItem(
|
||||
.padding(12.dp)
|
||||
.size(48.dp),
|
||||
color = MaterialTheme.colorScheme.primaryContainer,
|
||||
shape = RoundedCornerShape(8.dp)
|
||||
shape = MaterialTheme.shapes.small
|
||||
) {
|
||||
Box(
|
||||
contentAlignment = Alignment.Center
|
||||
|
||||
@ -214,7 +214,7 @@ fun WidgetColumn(
|
||||
Surface(
|
||||
tonalElevation = 16.dp,
|
||||
shadowElevation = 16.dp,
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(top = 16.dp),
|
||||
|
||||
@ -9,6 +9,7 @@ import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.animation.ExperimentalAnimationApi
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.shape.CornerSize
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.rounded.ArrowDropDown
|
||||
@ -209,7 +210,7 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
||||
)
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
Surface(
|
||||
shape = RoundedCornerShape(topStartPercent = 50, bottomStartPercent = 50),
|
||||
shape = MaterialTheme.shapes.extraSmall.copy(bottomEnd = CornerSize(0), topEnd = CornerSize(0)),
|
||||
color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.12f),
|
||||
modifier = Modifier.align(Alignment.End)
|
||||
|
||||
|
||||
@ -341,7 +341,7 @@ fun IconShapePreference(
|
||||
Surface(
|
||||
tonalElevation = 16.dp,
|
||||
shadowElevation = 16.dp,
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(vertical = 16.dp),
|
||||
@ -420,7 +420,7 @@ fun LegacyIconBackgroundPreference(
|
||||
Surface(
|
||||
tonalElevation = 16.dp,
|
||||
shadowElevation = 16.dp,
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(vertical = 16.dp),
|
||||
|
||||
@ -94,7 +94,7 @@ fun ExcludedCalendarsPreference(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(max = 400.dp),
|
||||
shape = RoundedCornerShape(16.dp),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
tonalElevation = 16.dp,
|
||||
shadowElevation = 16.dp,
|
||||
) {
|
||||
|
||||
@ -54,7 +54,7 @@ fun CrashReportScreen(fileName: String) {
|
||||
} else {
|
||||
MaterialTheme.colorScheme.primaryContainer
|
||||
},
|
||||
shape = RoundedCornerShape(8.dp)
|
||||
shape = MaterialTheme.shapes.small,
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user