chore: cleanup
This commit is contained in:
parent
cdaec764cb
commit
dc12414501
2 changed files with 4 additions and 4 deletions
|
|
@ -174,12 +174,12 @@ fun SettingsScreen(
|
|||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun SwitchSetting(
|
||||
enabled: Boolean = true,
|
||||
checked: Boolean,
|
||||
icon: @Composable (() -> Unit)? = null,
|
||||
title: @Composable () -> Unit,
|
||||
description: @Composable (() -> Unit)? = null,
|
||||
onCheckedChange: (Boolean) -> Unit,
|
||||
enabled: Boolean = true
|
||||
onCheckedChange: (Boolean) -> Unit
|
||||
) {
|
||||
ListItem(
|
||||
modifier = Modifier.clickable { onCheckedChange(!checked) },
|
||||
|
|
@ -260,7 +260,7 @@ fun GroupHeader(
|
|||
contentAlignment = Alignment.CenterStart
|
||||
) {
|
||||
Text(
|
||||
title,
|
||||
text = title,
|
||||
color = color,
|
||||
fontSize = LocalTextStyle.current.fontSize.times(0.95f),
|
||||
fontWeight = FontWeight.SemiBold
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
<string name="launch">Launch</string>
|
||||
<string name="uninstall">Uninstall</string>
|
||||
<string name="version">Version</string>
|
||||
<string name="dynamic_color">Dynamic color</string>
|
||||
<string name="dynamic_color">Dynamic color</string>
|
||||
<string name="appearance">Appearance</string>
|
||||
<string name="advanced">Advanced</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue