element-x-ada/libraries/designsystem
Marco Romano fd467c2451 Auto generate dark mode previews and screenshots (#776)
With this change, composable previews and screenshots should be created with just:
```
@ElementPreviews
@Composable
fun MyViewPreview() {
    ElementPreview { 
        MyView()
    }
}
```

- Adds `@ElementPreviews` which is a shorthand for:
```
@Preview(name = "D")
@Preview(name = "N", uiMode = Configuration.UI_MODE_NIGHT_YES)
```
Should be used in connection with the now public `fun ElementPreview()` composable.

- Adds ElementPreviews to previewAnnotations in dangerfile
- Screenshots of night mode previews are now rendered with night mode
- Replaces `ElementPreviewLight` and `ElementThemedPreview` with `ElementPreview`
- Deprecates `ElementPreviewDark` which should be removed.
- Remaining usages of `ElementPreviewDark` are now ignored during screenshot tests
2023-07-05 13:58:24 +02:00
..
src/main Auto generate dark mode previews and screenshots (#776) 2023-07-05 13:58:24 +02:00
.gitignore Refactor some modules + add dependency management (still WIP) 2022-10-27 19:24:57 +02:00
build.gradle.kts [Compound] Integrate compound tokens (#586) 2023-06-27 16:15:40 +00:00
consumer-rules.pro Refactor some modules + add dependency management (still WIP) 2022-10-27 19:24:57 +02:00
proguard-rules.pro Refactor some modules + add dependency management (still WIP) 2022-10-27 19:24:57 +02:00