Skip to content

Instantly share code, notes, and snippets.

@AdamMc331
Created March 24, 2021 15:25
Show Gist options
  • Save AdamMc331/27c6e95d52068b665eb465dd082eb9af to your computer and use it in GitHub Desktop.
Save AdamMc331/27c6e95d52068b665eb465dd082eb9af to your computer and use it in GitHub Desktop.
Day/Night Jetpack Compose Preview template. I called this `dayNightPrev`.
// NOTES: This doesn't help you import it into Intellij, I don't have the time to write that up right now, but if you know how
// to create your own live template, you can copy and paste the below.
@Preview(
name = "Night Mode",
uiMode = Configuration.UI_MODE_NIGHT_YES,
)
@Preview(
name = "Day Mode",
uiMode = Configuration.UI_MODE_NIGHT_NO,
)
@Composable
private fun $VAR$Preview() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment