This commit is contained in:
Nullptr 2022-03-07 14:42:10 +08:00
parent 041e58a038
commit 0154d6c364
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ fun SettingsSlot(
) )
} }
} }
Column(Modifier.weight(1f)) { Column(Modifier.weight(1f).padding(vertical = 6.dp)) {
Text(text = title, style = MaterialTheme.typography.titleMedium) Text(text = title, style = MaterialTheme.typography.titleMedium)
Column { Column {
if (desc != null) { if (desc != null) {

View File

@ -80,7 +80,7 @@ private val device = buildString {
private fun InfoCard(snackbarHostState: SnackbarHostState) { private fun InfoCard(snackbarHostState: SnackbarHostState) {
val context = LocalContext.current val context = LocalContext.current
val scope = rememberCoroutineScope() val scope = rememberCoroutineScope()
Card { ElevatedCard {
Column( Column(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()
@ -128,7 +128,7 @@ private fun InfoCard(snackbarHostState: SnackbarHostState) {
@Preview @Preview
@Composable @Composable
private fun SupportCard() { private fun SupportCard() {
Card { ElevatedCard {
Column( Column(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()

View File

@ -228,6 +228,7 @@ private fun PatchOptionsBody(
) )
} }
SettingsCheckBox( SettingsCheckBox(
modifier = Modifier.padding(top = 6.dp),
checked = viewModel.debuggable, checked = viewModel.debuggable,
onClick = { viewModel.debuggable = !viewModel.debuggable }, onClick = { viewModel.debuggable = !viewModel.debuggable },
icon = Icons.Outlined.BugReport, icon = Icons.Outlined.BugReport,

View File

@ -18,7 +18,6 @@ enum class PageList(
val arguments: List<NamedNavArgument> = emptyList(), val arguments: List<NamedNavArgument> = emptyList(),
val body: @Composable NavBackStackEntry.() -> Unit val body: @Composable NavBackStackEntry.() -> Unit
) { ) {
Repo( Repo(
iconSelected = Icons.Filled.GetApp, iconSelected = Icons.Filled.GetApp,
iconNotSelected = Icons.Outlined.GetApp, iconNotSelected = Icons.Outlined.GetApp,