diff --git a/app/src/main/java/com/sw/inbound/ui/weight/BottomActionBar.kt b/app/src/main/java/com/sw/inbound/ui/weight/BottomActionBar.kt index 2d4ce98..77b092a 100644 --- a/app/src/main/java/com/sw/inbound/ui/weight/BottomActionBar.kt +++ b/app/src/main/java/com/sw/inbound/ui/weight/BottomActionBar.kt @@ -1,6 +1,7 @@ package com.sw.inbound.ui.weight import androidx.compose.foundation.Image +import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row @@ -10,6 +11,7 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width +import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -47,22 +49,30 @@ fun BottomActionBar( // 左侧图标+文字 Row( verticalAlignment = Alignment.CenterVertically, - modifier = Modifier.clickable { - onLeftButtonClick() - } + horizontalArrangement = Arrangement.Center, + modifier = Modifier + .width(220.dp) + .height(100.dp) + .background( + color = colorResource(R.color.blue), + shape = RoundedCornerShape(10.dp) + ) + .clickable { + onLeftButtonClick() + } ) { Image( - painter = painterResource(R.mipmap.ic_home), + painter = painterResource(R.mipmap.ic_home2), contentDescription = "返回", - modifier = Modifier.size(80.dp) + modifier = Modifier.size(40.dp) ) - Spacer(modifier = Modifier.width(17.dp)) + Spacer(modifier = Modifier.width(21.dp)) Text( text = leftText, style = TextStyle( - color = colorResource(R.color.black), + color = colorResource(R.color.white), fontWeight = FontWeight.Bold, - fontSize = 30.sp + fontSize = 36.sp ) ) } @@ -91,4 +101,5 @@ fun BottomActionBar( ) } } + } \ No newline at end of file diff --git a/app/src/main/res/mipmap-xxhdpi/ic_home2.png b/app/src/main/res/mipmap-xxhdpi/ic_home2.png new file mode 100644 index 0000000..b35317b Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_home2.png differ