1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-23 23:46:57 +00:00

Added stream grid mini preview

This commit is contained in:
Isira Seneviratne 2024-07-28 17:39:14 +05:30
parent 8e8f627097
commit 44530618e0

View File

@ -76,3 +76,16 @@ private fun StreamGridItemPreview(
}
}
}
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
private fun StreamMiniGridItemPreview(
@PreviewParameter(StreamItemPreviewProvider::class) stream: StreamInfoItem
) {
AppTheme {
Surface(color = MaterialTheme.colorScheme.background) {
StreamGridItem(stream, isMini = true)
}
}
}