Open Bug 1821758 Opened 3 years ago Updated 3 months ago

Create a Composable @Preview annotation that automatically creates Light, Dark, and Private themed previews

Categories

(Firefox for Android :: Design System and Theming, task, P3)

All
Android
task

Tracking

()

People

(Reporter: 007, Unassigned)

References

(Blocks 1 open bug)

Details

Similar to our @LightDarkPreview annotation, construct an additional @AllThemesPreview annotation that creates a preview for each of our themes in FirefoxTheme (e.g. Light, Dark, Private).

Reference this article for how to pass in complex data types to previews

https://foso.github.io/Jetpack-Compose-Playground/general/preview/previewparameter/

https://developer.android.com/jetpack/compose/tooling/studio#preview-multipreview

Component: General → Design System and Theming

This is requested on google issue tracker

https://issuetracker.google.com/issues/420460318

You need to log in before you can comment on or make changes to this bug.