rio
rio copied to clipboard
Add FrostedGlassFill fill type
What does it do?
Added a new Fill type called FrostedGlassFill. This new fill type allows users to specify a color using RGB format (so you can specify the opacity of the color) and a blur in px, which is later converted to rem.
Why is it needed?
I wanted a way to be able to have see-through components with a blur added.
How to test it?
Create a rectangle and set the fill to FrostedGlassFill, providing color and blur.
ex: fill=rio.FrostedGlassFill(rio.Color.from_rgb(0, 0, 0, 0.4), 10),