element-x-ada/tools
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
..
adb Fix test script 2023-05-30 15:59:58 +02:00
check Fix false positive. 2023-07-03 17:09:04 +02:00
danger Optional day night preview annotation (#793) 2023-07-06 12:35:54 +02:00
detekt Link Compound's TypographyTokens to ElementTheme. (#700) 2023-06-28 08:53:20 +00:00
docs Add missing Copyright 2022-12-22 13:51:56 +01:00
git Setup git lfs 2023-01-18 15:20:32 +01:00
lint [Strings] Ignore unused strings 2023-03-27 14:44:24 +02:00
localazy Ensure files downloaded by localazy end with a new line. 2023-06-16 15:14:00 +02:00
strings Add script to import strings, and doc. 2023-01-18 11:54:02 +01:00
templates [Templates] changes after review 2023-03-27 17:43:02 +02:00
towncrier Setup towncrier 2023-01-11 14:57:14 +01:00