Remove Progress from splashscreen to follow design requirements.

This commit is contained in:
Benoit Marty
2025-09-30 12:15:25 +02:00
parent bfb51e188e
commit f5df8dcad9
5 changed files with 20 additions and 18 deletions

View File

@@ -7,21 +7,23 @@
package io.element.android.libraries.ui.common.nodes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.ui.Alignment
import com.bumble.appyx.core.modality.BuildContext
import com.bumble.appyx.core.node.Node
import com.bumble.appyx.core.node.node
import io.element.android.libraries.designsystem.theme.components.CircularProgressIndicator
import io.element.android.compound.theme.ElementTheme
fun loadingNode(
/**
* Ref: https://www.figma.com/design/0MMNu7cTOzLOlWb7ctTkv3/Element-X?node-id=1518-85323
*/
fun emptyNode(
buildContext: BuildContext,
showProgressIndicator: Boolean = true,
): Node = node(buildContext) { modifier ->
Box(modifier = modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
if (showProgressIndicator) {
CircularProgressIndicator()
}
}
Box(
modifier = modifier
.fillMaxSize()
.background(ElementTheme.colors.bgCanvasDefault),
)
}