25 lines
696 B
Kotlin
25 lines
696 B
Kotlin
package co.electriccoin.zcash.ui.design.component
|
|
|
|
import androidx.compose.foundation.background
|
|
import androidx.compose.material3.Surface
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.compose.ui.Modifier
|
|
import androidx.compose.ui.graphics.Color
|
|
import androidx.compose.ui.graphics.RectangleShape
|
|
import co.electriccoin.zcash.ui.design.theme.ZcashTheme
|
|
|
|
@Composable
|
|
fun GradientSurface(
|
|
modifier: Modifier = Modifier,
|
|
content: @Composable () -> Unit
|
|
) {
|
|
Surface(
|
|
color = Color.Transparent,
|
|
modifier =
|
|
modifier
|
|
.background(ZcashTheme.colors.surfaceGradient()),
|
|
shape = RectangleShape,
|
|
content = content
|
|
)
|
|
}
|