If I have a white component, in my previews I show it against non-white background with sth like @Preview(showBackground = true, backgroundColor = 0xFFF4F9FF). Would be great if Showkase read that and added that to the metadata (and of course that could be used when rendering the default showkase gallery).
@ShowkaseComposable(name = "Basic card", group = "Cards")
@Preview(showBackground = true, backgroundColor = 0xFFF4F9FF)
@Composable
fun MyCardPreview() {
MyTheme {
MyCard {
Text(text = "Capybaras are the best!")
}
}
}
That's probably not too hard to do, let me know if you would like a PR for that.
If I have a white component, in my previews I show it against non-white background with sth like
@Preview(showBackground = true, backgroundColor = 0xFFF4F9FF)
. Would be great if Showkase read that and added that to the metadata (and of course that could be used when rendering the default showkase gallery).That's probably not too hard to do, let me know if you would like a PR for that.