Icon shape preference: remove labels

This commit is contained in:
MM20 2022-09-10 22:06:00 +02:00
parent b1851401f2
commit 060cbdc582
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -409,12 +409,12 @@ fun IconShapePreference(
columns = GridCells.Adaptive(96.dp),
modifier = Modifier
.fillMaxWidth()
.padding(bottom = 16.dp, start = 16.dp, end = 16.dp)
.padding(bottom = 16.dp)
) {
items(shapes) {
Column(
modifier = Modifier
.padding(8.dp),
.padding(vertical = 16.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
val context = LocalContext.current
@ -442,12 +442,6 @@ fun IconShapePreference(
},
shape = getShape(it)
)
Text(
getShapeName(it) ?: "",
textAlign = TextAlign.Center,
style = MaterialTheme.typography.labelMedium,
modifier = Modifier.padding(top = 4.dp)
)
}
}
}
@ -550,15 +544,6 @@ fun LayoutPreference(
)
)
/*LaunchedEffect(null) {
val drw = LottieDrawable()
drw.composition = composition
val list = drw.resolveKeyPath(KeyPath("**"))
list.forEach {
Log.d("MM20", it.keysToString())
}
}*/
val progress by animateLottieCompositionAsState(
composition,