fix: 传输页补充返回按键

This commit is contained in:
cbb
2026-10-12 01:23:04 +08:00
parent 5b659cc743
commit 79b6dd63b8
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ android {
applicationId = "com.smbfast.app" applicationId = "com.smbfast.app"
minSdk = 26 minSdk = 26
targetSdk = 35 targetSdk = 35
versionCode = 22 versionCode = 23
versionName = "1.19.1" versionName = "1.19.2"
} }
signingConfigs { signingConfigs {
@@ -17,6 +17,7 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.Close import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.Download import androidx.compose.material.icons.filled.Download
import androidx.compose.material.icons.filled.OpenInNew import androidx.compose.material.icons.filled.OpenInNew
@@ -87,9 +88,18 @@ fun TransfersScreen(vm: AppViewModel) {
colors = TopAppBarDefaults.topAppBarColors( colors = TopAppBarDefaults.topAppBarColors(
containerColor = Color.Transparent, containerColor = Color.Transparent,
titleContentColor = Color.White, titleContentColor = Color.White,
navigationIconContentColor = Color.White,
actionIconContentColor = Color.White.copy(alpha = 0.85f), actionIconContentColor = Color.White.copy(alpha = 0.85f),
), ),
title = { GradientText("传输", fontSize = 24) }, title = { GradientText("传输", fontSize = 24) },
navigationIcon = {
IconButton(onClick = { vm.goBack() }) {
Icon(
Icons.AutoMirrored.Filled.ArrowBack,
contentDescription = "返回",
)
}
},
actions = { actions = {
TextButton(onClick = { vm.transferManager.clearFinished() }) { TextButton(onClick = { vm.transferManager.clearFinished() }) {
Text("清除已完成", color = Neon.TextDim) Text("清除已完成", color = Neon.TextDim)