Improve Menu UI

This commit is contained in:
vfsfitvnm 2022-08-13 18:11:47 +02:00
parent bf7c90e71f
commit 6f72c1eae5

View file

@ -15,7 +15,6 @@ import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicText import androidx.compose.foundation.text.BasicText
import androidx.compose.foundation.verticalScroll import androidx.compose.foundation.verticalScroll
import androidx.compose.material.ripple.rememberRipple import androidx.compose.material.ripple.rememberRipple
@ -44,11 +43,8 @@ inline fun Menu(
.padding(top = 48.dp) .padding(top = 48.dp)
.verticalScroll(rememberScrollState()) .verticalScroll(rememberScrollState())
.fillMaxWidth() .fillMaxWidth()
.background( .background(colorPalette.background1)
color = colorPalette.background1, .padding(top = 2.dp)
shape = RoundedCornerShape(topStart = 16.dp, topEnd = 16.dp)
)
.padding(top = 8.dp)
.padding(vertical = 8.dp) .padding(vertical = 8.dp)
.navigationBarsPadding(), .navigationBarsPadding(),
content = content content = content
@ -82,9 +78,9 @@ fun MenuEntry(
Image( Image(
painter = painterResource(icon), painter = painterResource(icon),
contentDescription = null, contentDescription = null,
colorFilter = ColorFilter.tint(colorPalette.textSecondary), colorFilter = ColorFilter.tint(colorPalette.text),
modifier = Modifier modifier = Modifier
.size(16.dp) .size(14.dp)
) )
Column { Column {