Allow parent opacity without propagating to child subtree (for glassy UI effects) #9695
Answered
by
bowenxuuu
mitsubishirgb
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mitsubishirgb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a glassy (frosted glass) UI effect and need to apply semi-transparency to a parent container without affecting its children (e.g., text labels becoming too faint or invisible). From the docs, I understand Slint composites the entire subtree into an intermediate layer and applies opacity to that layer for performance, which causes this propagation. Is there a built-in way to isolate the parent's opacity (e.g., a "local-only" mode, or using layers/clipping)? If not, could we add support for it?
Beta Was this translation helpful? Give feedback.
All reactions