Clean up icon shape options

This commit is contained in:
Suphon Thanakornpakapong
2022-06-23 17:04:49 +07:00
parent ad97115925
commit 79c38a3f97

View File

@@ -35,14 +35,10 @@ fun IconShapePreference(
listOf<ListPreferenceEntry<IconShape>>(
ListPreferenceEntry(systemShape) { stringResource(id = R.string.icon_shape_system) },
ListPreferenceEntry(IconShape.Circle) { stringResource(id = R.string.icon_shape_circle) },
ListPreferenceEntry(IconShape.Square) { stringResource(id = R.string.icon_shape_square) },
ListPreferenceEntry(IconShape.RoundedSquare) { stringResource(id = R.string.icon_shape_rounded_square) },
ListPreferenceEntry(IconShape.Cupertino) { stringResource(id = R.string.icon_shape_rounded_square) },
ListPreferenceEntry(IconShape.Squircle) { stringResource(id = R.string.icon_shape_squircle) },
ListPreferenceEntry(IconShape.Sammy) { stringResource(id = R.string.icon_shape_sammy) },
ListPreferenceEntry(IconShape.Teardrop) { stringResource(id = R.string.icon_shape_teardrop) },
ListPreferenceEntry(IconShape.Cylinder) { stringResource(id = R.string.icon_shape_cylinder) },
ListPreferenceEntry(IconShape.Cupertino) { stringResource(id = R.string.icon_shape_cupertino) },
)
)
}
val adapter = preferenceManager2().iconShape.getAdapter()