[Compound] Implement platform components (Switch, RadioButton, Checkbox) (#982)

* Create our custom Switch component

* Update RadioButton colors

* Update Checkbox colors

* Fix padding in `ReplyToContent`

* Add `indeterminate` and `hasError` parameters to `CheckBox`.

Improve previews.

* Improve Switch previews.

* Improve RadioButton previews.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
Jorge Martin Espinosa 2023-07-27 14:55:58 +02:00 committed by GitHub
parent ede935cdd9
commit 914235228d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 282 additions and 157 deletions

View file

@ -479,7 +479,7 @@ private fun ReplyToContent(
val paddings = if (attachmentThumbnailInfo != null) {
PaddingValues(start = 4.dp, end = 12.dp, top = 4.dp, bottom = 4.dp)
} else {
PaddingValues(start = 12.dp, end = 12.dp, top = 8.dp, bottom = 4.dp)
PaddingValues(horizontal = 12.dp, vertical = 4.dp)
}
Row(
modifier