Browse Source

Do not change bg color of DropdownMenu for dark theme

jonny/proxy
Benoit Marty 1 year ago committed by Benoit Marty
parent
commit
d1f8e64fa1
  1. 7
      libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/DropdownMenu.kt

7
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/DropdownMenu.kt

@ -38,11 +38,16 @@ fun DropdownMenu( @@ -38,11 +38,16 @@ fun DropdownMenu(
properties: PopupProperties = PopupProperties(focusable = true),
content: @Composable ColumnScope.() -> Unit
) {
val bgColor = if (ElementTheme.isLightTheme) {
ElementTheme.materialColors.background
} else {
ElementTheme.colors.bgSubtlePrimary
}
androidx.compose.material3.DropdownMenu(
expanded = expanded,
onDismissRequest = onDismissRequest,
modifier = modifier
.background(color = ElementTheme.materialColors.background)
.background(color = bgColor)
.widthIn(min = minMenuWidth),
offset = offset,
properties = properties,

Loading…
Cancel
Save