diff --git a/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt b/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt index 3060b45c4c..bf2da00f68 100644 --- a/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt +++ b/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt @@ -22,7 +22,7 @@ import kotlinx.coroutines.launch @Composable fun BottomSheet( sheetState: BottomSheetState = rememberBottomSheetState(initialValue = ModalBottomSheetValue.Hidden), - scrimColor: Color = ModalBottomSheetDefaults.scrimColor, + scrimColor: Color = BottomSheetDefaults.scrimColor, sheetContent: @Composable () -> Unit, ) { val currentSheetContent by rememberUpdatedState(sheetContent) @@ -164,3 +164,13 @@ class BottomSheetState( ) } } + +object BottomSheetDefaults { + val scrimColor: Color + @Composable + get() = if (MaterialTheme.colors.isLight) { + MaterialTheme.colors.onBackground.copy(alpha = 0.32F) + } else { + MaterialTheme.colors.background.copy(alpha = 0.32F) + } +} \ No newline at end of file