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)
Column {
if (desc != null) {

View File

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

View File

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

View File

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