mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2533 Multiplayer | Design | Add gradient for introduce-space-sharing screen (#1291)
This commit is contained in:
parent
27c4a472fd
commit
fa871e2d39
1 changed files with 24 additions and 1 deletions
|
@ -18,6 +18,11 @@ import androidx.compose.runtime.Composable
|
|||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.geometry.Offset
|
||||
import androidx.compose.ui.graphics.Brush
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.TileMode
|
||||
import androidx.compose.ui.platform.LocalConfiguration
|
||||
import androidx.compose.ui.res.colorResource
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
|
@ -38,8 +43,26 @@ import kotlinx.coroutines.launch
|
|||
fun IntroduceSpaceSharingScreen(
|
||||
onDoneClicked: () -> Unit
|
||||
) {
|
||||
val configuration = LocalConfiguration.current
|
||||
|
||||
val screenHeight = configuration.screenHeightDp.dp
|
||||
val screenWidth = configuration.screenWidthDp.dp
|
||||
|
||||
ConstraintLayout(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.background(
|
||||
brush = Brush.linearGradient(
|
||||
colors = listOf(
|
||||
Color.Transparent,
|
||||
Color(0xFFFEF2C6),
|
||||
),
|
||||
start = Offset(
|
||||
screenWidth.value * 2,
|
||||
screenHeight.value * 2.2f
|
||||
)
|
||||
)
|
||||
)
|
||||
) {
|
||||
|
||||
val coroutineScope = rememberCoroutineScope()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue