Sort icon shapes alphabetically

Co-authored-by: Daria Hamrah Paytakht <info@dariarnd.ir>
This commit is contained in:
Yasan
2022-08-13 14:36:14 +04:30
parent 8330262756
commit e37c2f9515
@@ -53,10 +53,10 @@ fun iconShapeEntries(context: Context): List<ListPreferenceEntry<IconShape>> {
return listOf(
ListPreferenceEntry(systemShape) { stringResource(id = R.string.icon_shape_system) },
ListPreferenceEntry(IconShape.Circle) { stringResource(id = R.string.icon_shape_circle) },
ListPreferenceEntry(IconShape.Cupertino) { stringResource(id = R.string.icon_shape_cupertino) },
ListPreferenceEntry(IconShape.Cylinder) { stringResource(id = R.string.icon_shape_cylinder) },
ListPreferenceEntry(IconShape.RoundedSquare) { stringResource(id = R.string.icon_shape_rounded_square) },
ListPreferenceEntry(IconShape.Cupertino) { stringResource(id = R.string.icon_shape_cupertino) },
ListPreferenceEntry(IconShape.Sammy) { stringResource(id = R.string.icon_shape_sammy) },
ListPreferenceEntry(IconShape.RoundedSquare) { stringResource(id = R.string.icon_shape_rounded_square) },
ListPreferenceEntry(IconShape.Square) { stringResource(id = R.string.icon_shape_square) },
ListPreferenceEntry(IconShape.Squircle) { stringResource(id = R.string.icon_shape_squircle) },
ListPreferenceEntry(IconShape.Teardrop) { stringResource(id = R.string.icon_shape_teardrop) },
@@ -141,4 +141,4 @@ fun IconShapePreview(
style = Stroke(width = 4f),
)
}
}
}