element-x-ada/tests/uitests
Marco Romano 3449ea486a Optional day night preview annotation (#793)
Adds the `@DayNightPreviews` annotation that when used on a composable will:
- Display both a day mode and night mode preview in Android Studio.
- Produce both a day and night screenshot during screenshot testing.

The usage of this new annotation is optional, all the current previews continue to work without breakages.
New code can use, when appropriate, the new `@DayNightPreviews` annotation and replace the pattern using three `LightPreview/DarkPreview/ContentToPreview` functions with:

```
@DayNightPreviews
@Composable
fun MyScreenPreview(@PreviewParameter(MyStateProvider::class) state: MyState) {
    ElementPreview {
        MyScreen(
            state = state,
        )
    }
}
```
2023-07-06 12:35:54 +02:00
..
src Optional day night preview annotation (#793) 2023-07-06 12:35:54 +02:00
.gitignore Move Showkase to a dedicated module for ui tests. 2023-01-18 15:19:54 +01:00
build.gradle.kts [Message Actions] Report messages (#642) 2023-06-23 10:44:47 +02:00
consumer-rules.pro Move Showkase to a dedicated module for ui tests. 2023-01-18 15:19:54 +01:00
proguard-rules.pro Move Showkase to a dedicated module for ui tests. 2023-01-18 15:19:54 +01:00