mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Do not change bg color of DropdownMenu for dark theme
This commit is contained in:
committed by
Benoit Marty
parent
d5faa35977
commit
d1f8e64fa1
+6
-1
@@ -38,11 +38,16 @@ fun DropdownMenu(
|
|||||||
properties: PopupProperties = PopupProperties(focusable = true),
|
properties: PopupProperties = PopupProperties(focusable = true),
|
||||||
content: @Composable ColumnScope.() -> Unit
|
content: @Composable ColumnScope.() -> Unit
|
||||||
) {
|
) {
|
||||||
|
val bgColor = if (ElementTheme.isLightTheme) {
|
||||||
|
ElementTheme.materialColors.background
|
||||||
|
} else {
|
||||||
|
ElementTheme.colors.bgSubtlePrimary
|
||||||
|
}
|
||||||
androidx.compose.material3.DropdownMenu(
|
androidx.compose.material3.DropdownMenu(
|
||||||
expanded = expanded,
|
expanded = expanded,
|
||||||
onDismissRequest = onDismissRequest,
|
onDismissRequest = onDismissRequest,
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.background(color = ElementTheme.materialColors.background)
|
.background(color = bgColor)
|
||||||
.widthIn(min = minMenuWidth),
|
.widthIn(min = minMenuWidth),
|
||||||
offset = offset,
|
offset = offset,
|
||||||
properties = properties,
|
properties = properties,
|
||||||
|
|||||||
Reference in New Issue
Block a user