fix: surface colors
Material3 changed surface color calculations
This commit is contained in:
parent
fc6c786ca3
commit
c9f0649ff7
3 changed files with 5 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ fun RowScope.SegmentedButton(
|
|||
verticalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterVertically),
|
||||
modifier = Modifier
|
||||
.clickable(onClick = onClick)
|
||||
.background(MaterialTheme.colorScheme.surfaceColorAtElevation(LocalAbsoluteTonalElevation.current + 2.dp))
|
||||
.background(MaterialTheme.colorScheme.surfaceContainerHigh)
|
||||
.weight(1f)
|
||||
.padding(12.dp)
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ fun StepGroupCard(
|
|||
Column(
|
||||
modifier = modifier
|
||||
.clip(MaterialTheme.shapes.large)
|
||||
.background(MaterialTheme.colorScheme.surfaceColorAtElevation(1.dp))
|
||||
.background(MaterialTheme.colorScheme.surfaceContainerLow)
|
||||
) {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
|
|
|
|||
|
|
@ -24,18 +24,15 @@ fun TextPatchOption(
|
|||
description = description,
|
||||
modifier = modifier,
|
||||
) {
|
||||
val containerColor = MaterialTheme.colorScheme
|
||||
.surfaceColorAtElevation(LocalAbsoluteTonalElevation.current + .5.dp)
|
||||
|
||||
OutlinedTextField(
|
||||
value = value,
|
||||
onValueChange = onValueChange,
|
||||
isError = valueIsError,
|
||||
singleLine = true,
|
||||
colors = OutlinedTextFieldDefaults.colors(
|
||||
unfocusedContainerColor = containerColor,
|
||||
focusedContainerColor = containerColor,
|
||||
errorContainerColor = containerColor,
|
||||
unfocusedContainerColor = MaterialTheme.colorScheme.surfaceContainerLow,
|
||||
focusedContainerColor = MaterialTheme.colorScheme.surfaceContainerLow,
|
||||
errorContainerColor = MaterialTheme.colorScheme.surfaceContainerLow,
|
||||
),
|
||||
trailingIcon = {
|
||||
ResetToDefaultButton(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue