element-x-ada/libraries/designsystem
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/main Optional day night preview annotation (#793) 2023-07-06 12:35:54 +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