We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Composable @WearPreviewLargeRound internal fun TestCaseBox() { Box( modifier = Modifier .fillMaxSize() .background(Brush.horizontalGradient(listOf(Color.Blue, Color.Green, Color.Blue))) ) { Box(modifier = Modifier .fillMaxSize(0.8f) .align(Alignment.Center) .graphicsLayer(compositingStrategy = CompositingStrategy.Offscreen) .drawWithContent { drawContent() drawRect( brush = Brush.verticalGradient( listOf( Color.Black, Color.Transparent, Color.Black ) ), blendMode = BlendMode.DstIn ) }) { Box( modifier = Modifier .fillMaxSize() .background(Color.Red) ) } } }
With Compose Previews
With RNG Screenshots
Ignore the device clipping
The text was updated successfully, but these errors were encountered:
Sample PR
https://github.com/google/horologist/pull/2173/files
Sorry, something went wrong.
No branches or pull requests
With Compose Previews
With RNG Screenshots
Ignore the device clipping
The text was updated successfully, but these errors were encountered: