2022-03-08 11:05:03 -08:00
|
|
|
package co.electriccoin.zcash.ui.design.component
|
2021-12-09 12:18:18 -08:00
|
|
|
|
|
|
|
import androidx.compose.foundation.background
|
2022-02-21 06:33:40 -08:00
|
|
|
import androidx.compose.material3.Surface
|
2021-12-09 12:18:18 -08:00
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.ui.Modifier
|
|
|
|
import androidx.compose.ui.graphics.Color
|
|
|
|
import androidx.compose.ui.graphics.RectangleShape
|
2022-03-08 11:05:03 -08:00
|
|
|
import co.electriccoin.zcash.ui.design.theme.ZcashTheme
|
2021-12-09 12:18:18 -08:00
|
|
|
|
|
|
|
@Composable
|
2023-12-11 01:20:32 -08:00
|
|
|
fun GradientSurface(
|
|
|
|
modifier: Modifier = Modifier,
|
|
|
|
content: @Composable () -> Unit
|
|
|
|
) {
|
2021-12-09 12:18:18 -08:00
|
|
|
Surface(
|
|
|
|
color = Color.Transparent,
|
2023-12-11 01:20:32 -08:00
|
|
|
modifier =
|
|
|
|
modifier
|
|
|
|
.background(ZcashTheme.colors.surfaceGradient()),
|
2021-12-09 12:18:18 -08:00
|
|
|
shape = RectangleShape,
|
|
|
|
content = content
|
|
|
|
)
|
|
|
|
}
|