mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
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:
+6
-1
@@ -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) {
|
||||||
|
Modifier.hazeEffect(
|
||||||
state = hazeState,
|
state = hazeState,
|
||||||
style = HazeMaterials.thick(),
|
style = HazeMaterials.thick(),
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
Modifier
|
||||||
|
.background(ElementTheme.colors.bgCanvasDefault)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
bottomBar = {
|
bottomBar = {
|
||||||
|
|||||||
Reference in New Issue
Block a user