Disable hazeEffect if spaces are not enabled.
Give us time to fix the transparency issue that has been discovered on the navigation bar.
This commit is contained in:
parent
83e0296f29
commit
cc22a84735
1 changed files with 9 additions and 4 deletions
|
|
@ -182,10 +182,15 @@ private fun HomeScaffold(
|
||||||
displayFilters = roomListState.displayFilters && state.currentHomeNavigationBarItem == HomeNavigationBarItem.Chats,
|
displayFilters = roomListState.displayFilters && state.currentHomeNavigationBarItem == HomeNavigationBarItem.Chats,
|
||||||
filtersState = roomListState.filtersState,
|
filtersState = roomListState.filtersState,
|
||||||
canReportBug = state.canReportBug,
|
canReportBug = state.canReportBug,
|
||||||
modifier = Modifier.hazeEffect(
|
modifier = if (state.isSpaceFeatureEnabled) {
|
||||||
state = hazeState,
|
Modifier.hazeEffect(
|
||||||
style = HazeMaterials.thick(),
|
state = hazeState,
|
||||||
)
|
style = HazeMaterials.thick(),
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
Modifier
|
||||||
|
.background(ElementTheme.colors.bgCanvasDefault)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
bottomBar = {
|
bottomBar = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue