-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
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
Transparent Background not working #154
Comments
I'm facing the same issue. I've set the background on a It seems to be a problem with the fun Modifier.background(
color: Color,
shape: Shape = RectangleShape
): Modifier {
val alpha = 1.0f // for solid colors
return this.then(
BackgroundElement(
color = color,
shape = shape,
alpha = alpha,
inspectorInfo = debugInspectorInfo {
name = "background"
value = color
properties["color"] = color
properties["shape"] = shape
}
)
)
} The method sets the alpha to 1.0 regardless of the background color actually supplied to the chart. |
@mathklk Surface(
modifier =modifier,
color = Color.Transparent
)
{
//inner composable that determines background
} The inner most composable should determine the background colors not surface. |
Adding Color.Transparent to
Results in a black background behind the circle instead of a transparent background.
The text was updated successfully, but these errors were encountered: