Skip to content

Commit ccec775

Browse files
committed
library: Change the ShadowColor of the ListPopup
1 parent 36e1112 commit ccec775

File tree

1 file changed

+2
-3
lines changed
  • miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic

1 file changed

+2
-3
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/ListPopup.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import androidx.compose.runtime.rememberUpdatedState
2424
import androidx.compose.runtime.setValue
2525
import androidx.compose.ui.AbsoluteAlignment
2626
import androidx.compose.ui.Modifier
27-
import androidx.compose.ui.graphics.Color
2827
import androidx.compose.ui.graphics.TransformOrigin
2928
import androidx.compose.ui.graphics.graphicsLayer
3029
import androidx.compose.ui.input.pointer.pointerInput
@@ -185,8 +184,8 @@ fun ListPopup(
185184
clip = true,
186185
shape = SmoothRoundedCornerShape(16.dp),
187186
shadowElevation = dropdownElevation,
188-
ambientShadowColor = Color.Black.copy(alpha = 0.3f),
189-
spotShadowColor = Color.Black.copy(alpha = 0.3f)
187+
ambientShadowColor = MiuixTheme.colorScheme.windowDimming,
188+
spotShadowColor = MiuixTheme.colorScheme.windowDimming
190189
)
191190
.background(MiuixTheme.colorScheme.surface)
192191
) {

0 commit comments

Comments
 (0)